File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
packages/angular_devkit/architect/node Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 6
6
* found in the LICENSE file at https://angular.io/license
7
7
*/
8
8
import { experimental , json , workspaces } from '@angular-devkit/core' ;
9
- import { resolve } from '@angular-devkit/core/node' ;
10
9
import * as path from 'path' ;
11
10
import { BuilderInfo } from '../src' ;
12
11
import { Schema as BuilderSchema } from '../src/builders-schema' ;
@@ -56,11 +55,8 @@ export class WorkspaceNodeModulesArchitectHost implements ArchitectHost<NodeModu
56
55
throw new Error ( 'No builder name specified.' ) ;
57
56
}
58
57
59
- const packageJsonPath = resolve ( packageName , {
60
- basedir : this . _root ,
61
- checkLocal : true ,
62
- checkGlobal : true ,
63
- resolvePackageJson : true ,
58
+ const packageJsonPath = require . resolve ( packageName + '/package.json' , {
59
+ paths : [ this . _root ] ,
64
60
} ) ;
65
61
66
62
const packageJson = require ( packageJsonPath ) ;
You can’t perform that action at this time.
0 commit comments