Skip to content

Commit

Permalink
fix(schematics): add support on underscore for application name (#1628)
Browse files Browse the repository at this point in the history
## Related issues

- 🐛 Fixes #1620
  • Loading branch information
matthieu-crouzet authored Apr 11, 2024
2 parents 845be6a + da2a0ff commit 52e0add
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .yarn/sdks/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typescript",
"version": "5.4.4-sdk",
"version": "5.4.5-sdk",
"main": "./lib/typescript.js",
"type": "commonjs",
"bin": {
Expand Down
4 changes: 2 additions & 2 deletions packages/@o3r/workspace/schematics/application/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function generateApplicationFn(options: NgGenerateApplicationSchema): Rule {
return chain([
externalSchematic<Partial<ApplicationOptions>>('@schematics/angular', 'application', {
...Object.entries(extendedOptions).reduce((acc, [key, value]) => (angularOptions.includes(key) ? {...acc, [key]: value} : acc), {}),
name: extendedOptions.name,
name: cleanName,
projectRoot,
style: Style.Scss}),
addProjectSpecificFiles(targetPath, rootDependencies),
Expand All @@ -90,7 +90,7 @@ function generateApplicationFn(options: NgGenerateApplicationSchema): Rule {
dependencies,
skipInstall: options.skipInstall,
ngAddToRun: Object.keys(dependencies),
projectName: options.name
projectName: cleanName
})
])(tree, context);
};
Expand Down

0 comments on commit 52e0add

Please sign in to comment.