diff --git a/scripts/build-pwa.js b/scripts/build-pwa.js index 444b5d1d0e..31c6a52897 100644 --- a/scripts/build-pwa.js +++ b/scripts/build-pwa.js @@ -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); @@ -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', }); }