Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit 464949d

Browse files
author
Jonathan Held
committed
Fixing build so that when EB is chosen, packages.json gets
run and the correct build parameters are executed.
1 parent 087a3bf commit 464949d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

aws/createResources.sh

+1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ createEBResources() {
108108

109109
# Commit changes made
110110
cd $ROOT_DIR
111+
npm run-script build
111112

112113
# Create Elastic Beanstalk application
113114
eb init $ROOT_NAME --region $REGION --platform $EB_PLATFORM

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"test": "ng test",
1111
"pree2e": "webdriver-manager update",
1212
"e2e": "protractor",
13-
"build": "ng build --prod --aot=false"
13+
"build": "npm install && ng build --prod --aot=false"
1414
},
1515
"private": true,
1616
"dependencies": {

0 commit comments

Comments
 (0)