Skip to content

Commit d133260

Browse files
hawkgsalexeagle
authored andcommitted
fix(@schematics/angular): project name option in the library schematic
1 parent c1e6529 commit d133260

File tree

1 file changed

+3
-3
lines changed
  • packages/schematics/angular/library

1 file changed

+3
-3
lines changed

packages/schematics/angular/library/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ export default function (options: LibraryOptions): Rule {
222222
commonModule: false,
223223
flat: true,
224224
path: sourceDir,
225-
project: options.name,
225+
project: projectName,
226226
}),
227227
schematic('component', {
228228
name: options.name,
@@ -232,13 +232,13 @@ export default function (options: LibraryOptions): Rule {
232232
flat: true,
233233
path: sourceDir,
234234
export: true,
235-
project: options.name,
235+
project: projectName,
236236
}),
237237
schematic('service', {
238238
name: options.name,
239239
flat: true,
240240
path: sourceDir,
241-
project: options.name,
241+
project: projectName,
242242
}),
243243
options.lintFix ? applyLintFix(sourceDir) : noop(),
244244
(_tree: Tree, context: SchematicContext) => {

0 commit comments

Comments
 (0)