File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
packages/nx/src/utils/plugins Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { readJsonFile } from '../fileutils';
7
7
import { PackageJson , readModulePackageJson } from '../package-json' ;
8
8
import { workspaceRoot } from '../workspace-root' ;
9
9
import { join } from 'path' ;
10
- import { NxJsonConfiguration } from '../../config/nx-json' ;
10
+ import { NxJsonConfiguration , readNxJson } from '../../config/nx-json' ;
11
11
import { getNxRequirePaths } from '../installation-directory' ;
12
12
13
13
export function findInstalledPlugins ( ) : PackageJson [ ] {
@@ -56,9 +56,7 @@ function getDependenciesFromPackageJson(
56
56
}
57
57
58
58
function getDependenciesFromNxJson ( ) : string [ ] {
59
- const { installation } = readJsonFile < NxJsonConfiguration > (
60
- join ( workspaceRoot , 'nx.json' )
61
- ) ;
59
+ const { installation } = readNxJson ( ) ;
62
60
if ( ! installation ) {
63
61
return [ ] ;
64
62
}
You can’t perform that action at this time.
0 commit comments