Skip to content

Commit b0dd4e1

Browse files
alan-agius4clydin
authored andcommitted
fix(@angular-devkit/build-angular): resolve absolute outputPath properly
Closes #20935 (cherry picked from commit 861a695)
1 parent fb8bd56 commit b0dd4e1

File tree

1 file changed

+1
-1
lines changed
  • packages/angular_devkit/build_angular/src/webpack/configs

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/webpack/configs/common.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
269269
compiler.hooks.done.tapPromise('angular-cli-stats', async (stats) => {
270270
const { stringifyStream } = await import('@discoveryjs/json-ext');
271271
const data = stats.toJson('verbose');
272-
const statsOutputPath = path.join(root, buildOptions.outputPath, 'stats.json');
272+
const statsOutputPath = path.resolve(root, buildOptions.outputPath, 'stats.json');
273273

274274
try {
275275
await fsPromises.mkdir(path.dirname(statsOutputPath), { recursive: true });

0 commit comments

Comments
 (0)