File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
packages/angular/cli/commands Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export class AddCommand extends SchematicCommand<AddCommandSchema> {
38
38
}
39
39
40
40
async run ( options : AddCommandSchema & Arguments ) {
41
- await ensureCompatibleNpm ( this . context . root ) ;
41
+ await ensureCompatibleNpm ( this . workspace . root ) ;
42
42
43
43
if ( ! options . collection ) {
44
44
this . logger . fatal (
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export class NewCommand extends SchematicCommand<NewCommandSchema> {
22
22
}
23
23
24
24
public async run ( options : NewCommandSchema & Arguments ) {
25
- await ensureCompatibleNpm ( this . context . root ) ;
25
+ await ensureCompatibleNpm ( this . workspace . root ) ;
26
26
27
27
// Register the version of the CLI in the registry.
28
28
const packageJson = require ( '../package.json' ) ;
Original file line number Diff line number Diff line change @@ -256,7 +256,7 @@ export class UpdateCommand extends Command<UpdateCommandSchema> {
256
256
257
257
// tslint:disable-next-line:no-big-function
258
258
async run ( options : UpdateCommandSchema & Arguments ) {
259
- await ensureCompatibleNpm ( this . context . root ) ;
259
+ await ensureCompatibleNpm ( this . workspace . root ) ;
260
260
261
261
// Check if the @angular -devkit/schematics package can be resolved from the workspace root
262
262
// This works around issues with packages containing migrations that cannot directly depend on the package
You can’t perform that action at this time.
0 commit comments