We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 432fcb0 commit 88c3acbCopy full SHA for 88c3acb
packages/angular/cli/models/schematic-command.ts
@@ -256,7 +256,10 @@ export abstract class SchematicCommand<
256
registry: new schema.CoreSchemaRegistry(formats.standardFormats),
257
resolvePaths: !!this.workspace.configFile
258
// Workspace
259
- ? [process.cwd(), this.workspace.root, __dirname]
+ ? this.collectionName === this.defaultCollectionName
260
+ // Favor __dirname for @schematics/angular to use the build-in version
261
+ ? [__dirname, process.cwd(), this.workspace.root]
262
+ : [process.cwd(), this.workspace.root, __dirname]
263
// Global
264
: [__dirname, process.cwd()],
265
});
0 commit comments