Skip to content

Commit 2f9881d

Browse files
committed
add temporal fix for AOT build bug - read details for bug description
angular/angular-cli#8434
1 parent 7476c1c commit 2f9881d

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.travis.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,5 @@ before_script:
2424
- node server.js -- &
2525

2626
script:
27-
- npm run build-dev
28-
- npm run build-prod
27+
- npm run ngbuild
2928
- npm run cypress-run

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"cypress-open": "node_modules/.bin/cypress open",
3131
"cypress-run": "node_modules/.bin/cypress run --record --key 5bed002a-82c7-44a6-9e99-8fee9727f7d2",
3232
"lint": "tslint -c tslint.json public_src/**/*.ts public_src/components/**/*.ts public_src/*.ts",
33-
"postinstall": "npm run build",
33+
"postinstall": "npm run ngbuild",
3434
"prepare": "npm run snyk-protect",
3535
"prepublish": "snyk protect",
3636
"snyk-protect": "snyk protect",
@@ -42,12 +42,12 @@
4242
"wds-hot": "webpack-dev-server --config webpack/webpack.config.hot.js --content-base public/ --progress --colors --inline --watch --hotOnly",
4343
"wds-prod": "webpack-dev-server --config webpack/webpack.config.prod.js --content-base public/ --progress --colors",
4444
"ng": "ng",
45-
"start": "ng serve",
46-
"start-hmr": "ng serve --hmr",
47-
"build": "ng build --prod",
48-
"test": "ng test",
49-
"lint": "ng lint",
50-
"e2e": "ng e2e"
45+
"ngstart": "ng serve",
46+
"ngstart-hmr": "ng serve --hmr",
47+
"ngbuild": "ng build --prod --aot=false",
48+
"ngtest": "ng test",
49+
"nglint": "ng lint",
50+
"nge2e": "ng e2e"
5151
},
5252
"homepage": "https://github.com/dkocich/osm-pt-ngx-leaflet#readme",
5353
"dependencies": {

0 commit comments

Comments
 (0)