diff --git a/packages/devkit/src/utils/convert-nx-executor.spec.ts b/packages/devkit/src/utils/convert-nx-executor.spec.ts index 65fc1d654b3bb..cf7ba097a0436 100644 --- a/packages/devkit/src/utils/convert-nx-executor.spec.ts +++ b/packages/devkit/src/utils/convert-nx-executor.spec.ts @@ -29,7 +29,7 @@ describe('Convert Nx Executor', () => { const registry = new schema.CoreSchemaRegistry(); registry.addPostTransform(schema.transforms.addUndefinedDefaults); - const testArchitectHost = new TestingArchitectHost(); + const testArchitectHost = new TestingArchitectHost(fs.tempDir, fs.tempDir); testArchitectHost.workspaceRoot = fs.tempDir; const architect = new Architect(testArchitectHost, registry); diff --git a/packages/nx/src/project-graph/plugins/isolation/messaging.ts b/packages/nx/src/project-graph/plugins/isolation/messaging.ts index e693a42ece1f4..2503d4f4f1dae 100644 --- a/packages/nx/src/project-graph/plugins/isolation/messaging.ts +++ b/packages/nx/src/project-graph/plugins/isolation/messaging.ts @@ -1,6 +1,6 @@ -import { ProjectGraph } from '../../../config/project-graph'; -import { PluginConfiguration } from '../../../config/nx-json'; -import { +import type { ProjectGraph } from '../../../config/project-graph'; +import type { PluginConfiguration } from '../../../config/nx-json'; +import type { CreateDependenciesContext, CreateMetadataContext, CreateNodesContextV2, @@ -8,8 +8,8 @@ import { PostTasksExecutionContext, } from '../public-api'; import type { LoadedNxPlugin } from '../loaded-nx-plugin'; -import { Serializable } from 'child_process'; -import { Socket } from 'net'; +import type { Serializable } from 'child_process'; +import type { Socket } from 'net'; export interface PluginWorkerLoadMessage { type: 'load'; diff --git a/packages/nx/src/project-graph/utils/retrieve-workspace-files.ts b/packages/nx/src/project-graph/utils/retrieve-workspace-files.ts index d9960ec71c2b5..d538ad0e56f68 100644 --- a/packages/nx/src/project-graph/utils/retrieve-workspace-files.ts +++ b/packages/nx/src/project-graph/utils/retrieve-workspace-files.ts @@ -97,7 +97,7 @@ export async function retrieveProjectConfigurationsWithAngularProjects( pluginsToLoad.push(join(__dirname, '../../adapter/angular-json')); } - const plugins = await getPlugins(); + const plugins = await getPlugins(workspaceRoot); const res = await retrieveProjectConfigurations( plugins,