Skip to content

Commit

Permalink
fix(): fix app name wrapping logic
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Nov 16, 2020
1 parent 5ca90a1 commit 096d7c1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/compiler/helpers/get-value-or-default.ts
Expand Up @@ -15,9 +15,13 @@ export function getValueOrDefault<T = any>(
return origValue as T;
}
if (configuration.projects && configuration.projects[appName]) {
// Wrap the application name in double-quotes to prevent splitting it
// into separate chunks
appName = appName && !appName.includes('"') ? `"${appName}"` : appName;

const perAppValue = getValueOfPath(
configuration,
`projects."${appName}".`.concat(propertyPath),
`projects.${appName}.`.concat(propertyPath),
);
if (perAppValue !== undefined) {
return perAppValue as T;
Expand Down

0 comments on commit 096d7c1

Please sign in to comment.