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:
@@ -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';
|
||||
|
||||
@@ -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/';
|
||||
|
||||
Reference in New Issue
Block a user