Skip to content

Commit

Permalink
fix(@angular/cli): ensure built-in Angular schematics package can be …
Browse files Browse the repository at this point in the history
…found

The `@angular/cli` package contains a built-in version of the `@schematics/angular` package.  The module resolution paths for the schematics workflow should not assume package hoisting behavior when resolving.  This change corrects that oversight.

(cherry picked from commit 7cce3f0)
  • Loading branch information
clydin authored and dgp1130 committed Jan 22, 2020
1 parent 525e4aa commit 52f33d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/angular/cli/models/schematic-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export abstract class SchematicCommand<
registry: new schema.CoreSchemaRegistry(formats.standardFormats),
resolvePaths: !!this.workspace.configFile
// Workspace
? [process.cwd(), this.workspace.root]
? [process.cwd(), this.workspace.root, __dirname]
// Global
: [__dirname, process.cwd()],
});
Expand Down

0 comments on commit 52f33d1

Please sign in to comment.