Skip to content

Commit

Permalink
Merge pull request #23 from retejs/fix-angular-17-path
Browse files Browse the repository at this point in the history
fix(angular): static path
  • Loading branch information
Ni55aN authored Dec 23, 2023
2 parents 0cb2103 + 4a3b7bf commit cdac022
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/app-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ export interface AppBuilder {
create(name: string, version: number): Promise<void>
putAssets<Key extends string>(name: string, version: number, templateBuilder: TemplateBuilder<Key>): Promise<void>
putScript(name: string, path: string, code: string): Promise<void>
getStaticPath(name: string): string
getStaticPath(name: string, version?: number): string
}
3 changes: 2 additions & 1 deletion src/app/stack/angular/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ export class AngularBuilder implements AppBuilder {
await fs.promises.writeFile(scriptPath, code)
}

getStaticPath(name: string) {
getStaticPath(name: string, version?: number) {
if (version === 17) return join('dist', name, 'browser')
return join('dist', name)
}
}

0 comments on commit cdac022

Please sign in to comment.