Skip to content

Commit 3ed0bdf

Browse files
committed
try to adapt package.json for heroku
1 parent 179a2af commit 3ed0bdf

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "sandbox-angular4",
33
"version": "0.0.0",
44
"license": "MIT",
5+
"main": "server.js",
56
"scripts": {
67
"ng": "ng",
78
"start": "ng serve",
@@ -10,10 +11,17 @@
1011
"lint": "ng lint",
1112
"package": "ng build --aot -prod",
1213
"prod": "npm run package ; node server.js",
13-
"e2e": "ng e2e"
14+
"e2e": "ng e2e",
15+
"postinstall": "ng build --aot -prod"
16+
},
17+
"engines": {
18+
"node": "~7.10.0",
19+
"npm": "~4.2.0"
1420
},
1521
"private": true,
1622
"dependencies": {
23+
"@angular/cli": "1.3.0",
24+
"@angular/compiler-cli": "^4.2.4",
1725
"@angular/animations": "^4.2.4",
1826
"@angular/common": "^4.2.4",
1927
"@angular/compiler": "^4.2.4",
@@ -29,8 +37,6 @@
2937
"zone.js": "^0.8.14"
3038
},
3139
"devDependencies": {
32-
"@angular/cli": "1.3.0",
33-
"@angular/compiler-cli": "^4.2.4",
3440
"@angular/language-service": "^4.2.4",
3541
"@types/jasmine": "~2.5.53",
3642
"@types/jasminewd2": "~2.0.2",

0 commit comments

Comments
 (0)