Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): normalize long-form asset option …
Browse files Browse the repository at this point in the history
…output to relative path

The output option for the long-form of the assets build option should be a relative path based
from the output path of the application. However, a rooted path was also considered relative
to the output path. To avoid two different ways of representing the path throughout the build
system. The output path is now normalized to a relative path at the beginning of the build
process.

(cherry picked from commit 4d8d489)
  • Loading branch information
clydin authored and dgp1130 committed Apr 12, 2023
1 parent ff8a89c commit adbf2c8
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -67,6 +67,8 @@ export function normalizeAssetPatterns(
const output = path.relative(resolvedSourceRoot, path.resolve(workspaceRoot, input));

assetPattern = { glob, input, output };
} else {
assetPattern.output = path.join('.', assetPattern.output);
}

if (assetPattern.output.startsWith('..')) {
Expand Down

0 comments on commit adbf2c8

Please sign in to comment.