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 @@ -24,7 +24,7 @@ export class NewCommand extends SchematicCommand<NewCommandSchema> {
24
24
}
25
25
26
26
public async run ( options : NewCommandSchema & Arguments ) {
27
- await ensureCompatibleNpm ( this . context . root ) ;
27
+ await ensureCompatibleNpm ( this . workspace . root ) ;
28
28
29
29
// Register the version of the CLI in the registry.
30
30
const packageJson = require ( '../package.json' ) ;
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ export class UpdateCommand extends Command<UpdateCommandSchema> {
254
254
255
255
// tslint:disable-next-line:no-big-function
256
256
async run ( options : UpdateCommandSchema & Arguments ) {
257
- await ensureCompatibleNpm ( this . context . root ) ;
257
+ await ensureCompatibleNpm ( this . workspace . root ) ;
258
258
259
259
// Check if the @angular -devkit/schematics package can be resolved from the workspace root
260
260
// 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