Chore: Temp solution to remove user circular imports (#19021)

* remove user and document/media circular imports

* fix code order

* change MAX_CIRCULAR_DEPENDENCIES

* remove all comments from content before checking for imports

* fix self import

* fix self imports
This commit is contained in:
Mads Rasmussen
2025-04-15 15:18:14 +02:00
committed by GitHub
parent dab3975d2e
commit fcc8e2fe3a
12 changed files with 83 additions and 46 deletions

View File

@@ -12,7 +12,7 @@ import { join } from 'path';
//const __dirname = import.meta.dirname;
// Adjust this number as needed.
const MAX_CIRCULAR_DEPENDENCIES = 4;
const MAX_CIRCULAR_DEPENDENCIES = 1;
const IS_GITHUB_ACTIONS = process.env.GITHUB_ACTIONS === 'true';
const IS_AZURE_PIPELINES = process.env.TF_BUILD === 'true';

View File

@@ -3,7 +3,7 @@ import path from 'path';
import { createImportMap } from '../importmap/index.js';
const ILLEGAL_CORE_IMPORTS_THRESHOLD = 6;
const SELF_IMPORTS_THRESHOLD = 7;
const SELF_IMPORTS_THRESHOLD = 4;
const clientProjectRoot = path.resolve(import.meta.dirname, '../../');
const modulePrefix = '@umbraco-cms/backoffice/';