Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): resolve absolute outputPath properly
Browse files Browse the repository at this point in the history
Closes #20935
  • Loading branch information
alan-agius4 authored and clydin committed May 26, 2021
1 parent 02bea8c commit 861a695
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
compiler.hooks.done.tapPromise('angular-cli-stats', async (stats) => {
const { stringifyStream } = await import('@discoveryjs/json-ext');
const data = stats.toJson('verbose');
const statsOutputPath = path.join(root, buildOptions.outputPath, 'stats.json');
const statsOutputPath = path.resolve(root, buildOptions.outputPath, 'stats.json');

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

0 comments on commit 861a695

Please sign in to comment.