Skip to content

Commit 37ffa5e

Browse files
committed
fix(@angular-devkit/build-angular): resolve absolute output-path when using esbuild based builders
Prior to this change using an absolute path as a `output-path` resulted in the path to be combined with the workspace root instead of resolved which caused the output to be emitted in the incorrect directory or error in Windows. Closes #26935
1 parent 910531a commit 37ffa5e

File tree

1 file changed

+1
-1
lines changed
  • packages/angular_devkit/build_angular/src/builders/application

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/builders/application/options.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export async function normalizeOptions(
144144
media: 'media',
145145
...(typeof outputPath === 'string' ? undefined : outputPath),
146146
base: normalizeDirectoryPath(
147-
path.join(workspaceRoot, typeof outputPath === 'string' ? outputPath : outputPath.base),
147+
path.resolve(workspaceRoot, typeof outputPath === 'string' ? outputPath : outputPath.base),
148148
),
149149
};
150150

0 commit comments

Comments
 (0)