Skip to content

Commit b9aa541

Browse files
authored
Use npm node-prune instead of gobinaries.com which is down (#418)
1 parent 109dd23 commit b9aa541

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

nodejs/build-layer.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ npm install --unsafe-perm
1111
# optimise the size
1212
echo "Performing automated size optimisations"
1313
npm prune --json --production
14-
[ ! -f node-prune ] && curl -sf https://gobinaries.com/tj/node-prune | PREFIX=. sh
15-
./node-prune
14+
npm exec node-prune
1615

1716
echo "Preparing Splunk layer"
1817
cp nodejs-otel-handler ./build/

nodejs/package-lock.json

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

nodejs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"node": ">=14"
2626
},
2727
"devDependencies": {
28+
"node-prune": "^1.0.2",
2829
"typescript": "5.8"
2930
},
3031
"dependencies": {

0 commit comments

Comments
 (0)