Skip to content

Commit 32d9ec8

Browse files
committed
fix(@schematics/angular): dasherize library package name
Fix angular#11017
1 parent 4106a89 commit 32d9ec8

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

packages/schematics/angular/library/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export default function (options: LibraryOptions): Rule {
187187
validateProjectName(options.name);
188188

189189
// If scoped project (i.e. "@foo/bar"), convert projectDir to "foo/bar".
190-
const packageName = options.name;
190+
const packageName = strings.dasherize(options.name);
191191
let scopeName = null;
192192
if (/^@.*\/.*/.test(options.name)) {
193193
const [scope, name] = options.name.split('/');

0 commit comments

Comments
 (0)