Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit ddb91ce

Browse files
committed
Fix bug with npm postinstall via buildspec.yml by changing to 'npm install --prefix'
1 parent afe6cd2 commit ddb91ce

File tree

6 files changed

+254
-9
lines changed

6 files changed

+254
-9
lines changed

DevOps/2_ContinuousDeliveryPipeline/uni-api/buildspec.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ version: 0.2
33
phases:
44
install:
55
commands:
6+
# Install application dependencies
7+
- npm install --prefix app
8+
9+
# Install dependencies needed for running tests
610
- npm install
711

812
# Upgrade AWS CLI to the latest version

DevOps/2_ContinuousDeliveryPipeline/uni-api/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@
55
"author": "",
66
"license": "ISC",
77
"dependencies": {},
8-
"scripts": {
9-
"postinstall": "cd app && npm install"
10-
},
8+
"scripts": {},
119
"devDependencies": {
1210
"mocha": "^4.0.1",
1311
"proxyquire": "^1.8.0"
1412
}
15-
}
13+
}

DevOps/3_XRay/uni-api/app/package-lock.json

Lines changed: 242 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DevOps/3_XRay/uni-api/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"author": "",
66
"license": "ISC",
77
"dependencies": {
8-
"aws-xray-sdk": "^2.153.0",
8+
"aws-sdk": "^2.153.0",
99
"aws-xray-sdk": "^1.1.6"
1010
}
1111
}

DevOps/3_XRay/uni-api/buildspec.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ version: 0.2
33
phases:
44
install:
55
commands:
6+
# Install application dependencies
7+
- npm install --prefix app
8+
69
# Install dependencies needed for running tests
710
- npm install
811

@@ -22,4 +25,4 @@ artifacts:
2225
type: zip
2326
files:
2427
- template-export.yml
25-
- template-configuration.json
28+
- template-configuration.json

DevOps/3_XRay/uni-api/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
"author": "",
66
"license": "ISC",
77
"dependencies": {},
8-
"scripts": {
9-
"postinstall": "cd app && npm install"
10-
},
8+
"scripts": {},
119
"devDependencies": {
1210
"mocha": "^4.0.1",
1311
"proxyquire": "^1.8.0"

0 commit comments

Comments
 (0)