Skip to content

Commit 52f33d1

Browse files
clydindgp1130
authored andcommitted
fix(@angular/cli): ensure built-in Angular schematics package can be 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)
1 parent 525e4aa commit 52f33d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular/cli/models/schematic-command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export abstract class SchematicCommand<
254254
registry: new schema.CoreSchemaRegistry(formats.standardFormats),
255255
resolvePaths: !!this.workspace.configFile
256256
// Workspace
257-
? [process.cwd(), this.workspace.root]
257+
? [process.cwd(), this.workspace.root, __dirname]
258258
// Global
259259
: [__dirname, process.cwd()],
260260
});

0 commit comments

Comments
 (0)