Skip to content

Commit 4e8957e

Browse files
alan-agius4dylhunn
authored andcommitted
test: replace --prod with --configuration production (angular#46548)
In Angular CLI version 14, the deprecated `--prod` option has been removed. This is needed to land angular#46545 PR Close angular#46548
1 parent 0775332 commit 4e8957e

File tree

12 files changed

+15
-15
lines changed

12 files changed

+15
-15
lines changed

integration/animations/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",
7-
"build": "ng build --prod",
7+
"build": "ng build --configuration production",
88
"pretest": "ng version",
99
"test": "ng test && yarn e2e --configuration=ci && yarn e2e --configuration=ci-production",
1010
"lint": "ng lint",
@@ -44,4 +44,4 @@
4444
"tslint": "5.18.0",
4545
"typescript": "file:../../node_modules/typescript"
4646
}
47-
}
47+
}

integration/cli-elements-universal/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"start": "ng serve",
77
"build": "ng build",
88
"pretest": "ng version",
9-
"test": "ng test && yarn e2e --prod && yarn test-ssr",
9+
"test": "ng test && yarn e2e --configuration production && yarn test-ssr",
1010
"lint": "ng lint",
1111
"e2e": "ng e2e --port 0",
1212
"pretest-ssr": "yarn ng run cli-elements-universal:app-shell:production",

integration/cli-hello-world-ivy-compat/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.0",
44
"license": "MIT",
55
"scripts": {
6-
"build": "ng build --prod",
6+
"build": "ng build --configuration production",
77
"e2e": "ng e2e --port 0",
88
"lint": "ng lint",
99
"ng": "ng",

integration/cli-hello-world-ivy-i18n/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"version": "0.0.0",
44
"license": "MIT",
55
"scripts": {
6-
"build": "ng build --prod",
6+
"build": "ng build --configuration production",
77
"e2e": "ng e2e --port 0",
88
"lint": "ng lint",
99
"ng": "ng",
1010
"start": "ng serve",
1111
"pretest": "ng version",
12-
"test": "ng e2e --port 0 --prod && ng xi18n && yarn translate && ng e2e --port 0 --configuration fr && ng e2e --port 0 --configuration de",
12+
"test": "ng e2e --port 0 --configuration production && ng xi18n && yarn translate && ng e2e --port 0 --configuration fr && ng e2e --port 0 --configuration de",
1313
"translate": "cp src/locale/messages.xlf src/locale/messages.fr.xlf && cp src/locale/messages.xlf src/locale/messages.de.xlf && sed -i.bak -e 's/source>/target>/g' -e 's/Hello/Bonjour/' src/locale/messages.fr.xlf && sed -i.bak -e 's/source>/target>/g' -e 's/Hello/Hallo/' src/locale/messages.de.xlf",
1414
"serve": "serve --no-clipboard --listen 4200"
1515
},

integration/cli-hello-world-ivy-minimal/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.0",
44
"license": "MIT",
55
"scripts": {
6-
"build": "ng build --prod",
6+
"build": "ng build --configuration production",
77
"e2e": "ng e2e --port 0",
88
"lint": "ng lint",
99
"ng": "ng",

integration/cli-hello-world-lazy/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "cli-hello-world-lazy",
33
"version": "0.0.0",
44
"scripts": {
5-
"build": "ng build --prod",
6-
"e2e": "ng e2e --port 0 --prod",
5+
"build": "ng build --configuration production",
6+
"e2e": "ng e2e --port 0 --configuration production",
77
"test": "yarn e2e && yarn build && node check-output-for-ngdevmode.js"
88
},
99
"private": true,

integration/cli-hello-world-mocha/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",
7-
"build": "ng build --prod",
7+
"build": "ng build --configuration production",
88
"pretest": "ng version",
99
"test": "ng test && yarn e2e --configuration=ci && yarn e2e --configuration=ci-production",
1010
"lint": "ng lint",

integration/cli-hello-world/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",
7-
"build": "ng build --prod",
7+
"build": "ng build --configuration production",
88
"pretest": "ng version",
99
"test": "ng test && yarn e2e --configuration=ci && yarn e2e --configuration=ci-production",
1010
"lint": "ng lint",

integration/forms/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",
7-
"build": "ng build --prod",
7+
"build": "ng build --configuration production",
88
"pretest": "ng version",
99
"test": "ng test && yarn e2e --configuration=ci && yarn e2e --configuration=ci-production",
1010
"lint": "ng lint",

integration/ivy-i18n/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.0",
44
"license": "MIT",
55
"scripts": {
6-
"build": "ng build --prod",
6+
"build": "ng build --configuration production",
77
"e2e": "ng e2e --port 0",
88
"lint": "ng lint",
99
"ng": "ng",

integration/standalone-bootstrap/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",
7-
"build": "ng build --prod",
7+
"build": "ng build --configuration production",
88
"pretest": "ng version",
99
"test": "ng test && yarn e2e --configuration=ci && yarn e2e --configuration=ci-production",
1010
"lint": "ng lint",

integration/trusted-types/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",
7-
"build": "ng build --prod",
7+
"build": "ng build --configuration production",
88
"pretest": "ng version",
99
"test": "ng test && yarn e2e --configuration=ci && yarn e2e --configuration=ci-production",
1010
"lint": "ng lint",

0 commit comments

Comments
 (0)