Skip to content

Commit

Permalink
fix: remove trailing slash from dest
Browse files Browse the repository at this point in the history
The trailing slash causes the watcher to go in an infinite loop.

Closes #2558
  • Loading branch information
alan-agius4 committed Feb 9, 2023
1 parent 5c72469 commit 426a081
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/ng-package/package.ts
Expand Up @@ -58,7 +58,9 @@ export class NgPackage {

/** Absolute path of the package's destination directory. */
public get dest(): string {
return path.join(this.basePath, this.primary.$get('dest'));
const dest = path.join(this.basePath, this.primary.$get('dest'));

return dest.endsWith('/') ? dest.slice(0, -1) : dest;
}

public get keepLifecycleScripts(): boolean {
Expand Down

0 comments on commit 426a081

Please sign in to comment.