Skip to content

Commit

Permalink
fix(core): expand the number of cases where analyzeSourceFiles is def…
Browse files Browse the repository at this point in the history
…aulted to true
  • Loading branch information
vsavkin committed Jul 4, 2022
1 parent 3b1ea73 commit da14cfa
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/nx/src/project-graph/build-project-graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,15 @@ function jsPluginConfig(
if (nxJson?.pluginsConfig?.['@nrwl/js']) {
return nxJson?.pluginsConfig?.['@nrwl/js'];
}
if (packageJsonDeps['@nrwl/workspace'] || packageJsonDeps['@nrwl/js']) {
if (
packageJsonDeps['@nrwl/workspace'] ||
packageJsonDeps['@nrwl/js'] ||
packageJsonDeps['@nrwl/node'] ||
packageJsonDeps['@nrwl/next'] ||
packageJsonDeps['@nrwl/react'] ||
packageJsonDeps['@nrwl/angular'] ||
packageJsonDeps['@nrwl/web']
) {
return { analyzePackageJson: true, analyzeSourceFiles: true };
} else {
return { analyzePackageJson: true, analyzeSourceFiles: false };
Expand Down

0 comments on commit da14cfa

Please sign in to comment.