Skip to content

Commit

Permalink
fixup! refactor: use default project in the build script instead of t…
Browse files Browse the repository at this point in the history
…he hardcoded intershop-pwa project name
  • Loading branch information
SGrueber committed Aug 3, 2023
1 parent 55fbff8 commit edf5900
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build-pwa.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const server = processArgs.includes('server') || !processArgs.includes('client')
const remainingArgs = processArgs.filter(a => a !== 'client' && a !== 'server');

if (client) {
execSync(`npm run ng -- build ${angularJson.defaultProject} ${configString} ${remainingArgs.join(' ')}`, {
execSync(`npm run ng -- build ${configString} ${remainingArgs.join(' ')}`, {
stdio: 'inherit',
});
removeServiceWorkerCacheCheck(remainingArgs);
Expand All @@ -60,7 +60,7 @@ if (configuration) {
}

if (server) {
execSync(`npm run ng -- run ${angularJson.defaultProject}:server${configString} ${remainingArgs.join(' ')}`, {
execSync(`npm run ng -- run ${defaultProject}:server${configString} ${remainingArgs.join(' ')}`, {
stdio: 'inherit',
});
}

0 comments on commit edf5900

Please sign in to comment.