Skip to content

Commit

Permalink
chore(core): changes for review
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder committed Mar 18, 2022
1 parent 2676e6d commit 48d2390
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/nx/src/shared/nx-plugin.ts
Expand Up @@ -157,7 +157,7 @@ function registerTSTranspiler() {

function lookupLocalPlugin(importPath: string, root = appRootPath) {
const workspace = new Workspaces(root).readWorkspaceConfiguration({
ignorePluginInference: true,
_ignorePluginInference: true,
});
const plugin = findNxProjectForImportPath(importPath, workspace, root);
if (!plugin) {
Expand Down
8 changes: 6 additions & 2 deletions packages/nx/src/shared/workspace.ts
Expand Up @@ -60,7 +60,7 @@ export class Workspaces {
}

readWorkspaceConfiguration(opts?: {
ignorePluginInference?: boolean;
_ignorePluginInference?: boolean;
}): WorkspaceJsonConfiguration & NxJsonConfiguration {
if (this.cachedWorkspaceConfig) return this.cachedWorkspaceConfig;
const nxJsonPath = path.join(this.root, 'nx.json');
Expand All @@ -74,7 +74,11 @@ export class Workspaces {
? this.readFromWorkspaceJson()
: buildWorkspaceConfigurationFromGlobs(
nxJson,
globForProjectFiles(this.root, nxJson, opts?.ignorePluginInference),
globForProjectFiles(
this.root,
nxJson,
opts?._ignorePluginInference
),
(path) => readJsonFile(join(this.root, path))
);

Expand Down

0 comments on commit 48d2390

Please sign in to comment.