Skip to content

Commit

Permalink
fix: default value for normalizePath
Browse files Browse the repository at this point in the history
  • Loading branch information
ocombe committed Dec 1, 2023
1 parent 23b2218 commit 5827222
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion angular/devkit/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export function packagePath(packageName: string, path = ''): string {
* Normalize slashes in a file path to be posix/unix-like forward slashes.
* Also condenses repeat slashes to a single slash and removes and trailing slashes, unless disabled.
*/
export function normalizePath(path: string, removeTrailingSlashes = false): string {
export function normalizePath(path: string = '', removeTrailingSlashes = false): string {
return normalize(path, removeTrailingSlashes);
}

Expand Down
2 changes: 1 addition & 1 deletion angular/templates/generators/ng-app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class NgAppTemplate implements ComponentTemplate {
let params: { [id: string]: any } = {
styleSheet: 'scss',
standalone: this.angularVersion > 13,
ssr: this.angularVersion >= 17 // todo: check if we can use 16 here
ssr: this.angularVersion >= 17
};

if (!isCI) {
Expand Down
3 changes: 1 addition & 2 deletions angular/templates/generators/ng-app/template-files/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export const indexFile = (context: ComponentContext): ComponentFile => {
return {
relativePath: `index.ts`,
isMain: true,
content: `export * from './${name}.ng-app';
`
content: `export * from './${name}.ng-app';`
};
};

0 comments on commit 5827222

Please sign in to comment.