diff --git a/aio/package.json b/aio/package.json index 2eb9d03adb..3c98130a5a 100644 --- a/aio/package.json +++ b/aio/package.json @@ -13,10 +13,11 @@ "aio-check-local": "node tools/ng-packages-installer check .", "ng": "yarn check-env && ng", "start": "yarn check-env && ng serve", - "prebuild": "yarn setup", - "build": "yarn ~~build", + "build": "yarn build-for stable", + "prebuild-for": "yarn setup", + "build-for": "yarn ~~build --configuration", "prebuild-local": "yarn setup-local", - "build-local": "yarn ~~build", + "build-local": "yarn ~~build --configuration=stable", "lint": "yarn check-env && yarn docs-lint && ng lint && yarn example-lint && yarn tools-lint", "test": "yarn check-env && ng test", "pree2e": "yarn check-env && yarn update-webdriver", @@ -60,7 +61,7 @@ "build-ie-polyfills": "yarn webpack-cli src/ie-polyfills.js -o src/generated/ie-polyfills.min.js --mode production", "update-webdriver": "webdriver-manager update --standalone false --gecko false $CHROMEDRIVER_VERSION_ARG", "~~check-env": "node scripts/check-environment", - "~~build": "ng build --configuration=stable", + "~~build": "ng build", "post~~build": "yarn sw-manifest && yarn sw-copy" }, "engines": { diff --git a/aio/scripts/deploy-to-firebase.sh b/aio/scripts/deploy-to-firebase.sh index 3133f77161..6308157349 100755 --- a/aio/scripts/deploy-to-firebase.sh +++ b/aio/scripts/deploy-to-firebase.sh @@ -87,7 +87,7 @@ fi cd "`dirname $0`/.." # Build the app - yarn build --configuration=$deployEnv + yarn build-for $deployEnv # Include any mode-specific files cp -rf src/extra-files/$deployEnv/. dist/