skip installing ts-node in setup_buildkite, use ts version shared with root

This commit is contained in:
Alex Szabo 2025-01-08 21:25:44 +01:00
parent bd87655742
commit 30fdfa8f66
No known key found for this signature in database
GPG key ID: B1BB848E3D81E90B
3 changed files with 10 additions and 19 deletions

View file

@ -24,8 +24,8 @@
"chai": "^4.3.10",
"mocha": "^11.0.1",
"nock": "^12.0.2",
"ts-node": "^10.9.2",
"typescript": "^5.1.6"
"ts-node": "10.9.2",
"typescript": "5.1.6"
}
},
"node_modules/@cspotcode/source-map-support": {
@ -1775,9 +1775,9 @@
}
},
"node_modules/typescript": {
"version": "5.5.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.3.tgz",
"integrity": "sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==",
"version": "5.1.6",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz",
"integrity": "sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==",
"dev": true,
"bin": {
"tsc": "bin/tsc",
@ -3197,9 +3197,9 @@
"dev": true
},
"typescript": {
"version": "5.5.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.3.tgz",
"integrity": "sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==",
"version": "5.1.6",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz",
"integrity": "sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==",
"dev": true
},
"universal-user-agent": {

View file

@ -26,8 +26,8 @@
"chai": "^4.3.10",
"mocha": "^11.0.1",
"nock": "^12.0.2",
"ts-node": "^10.9.2",
"typescript": "^5.1.6"
"ts-node": "10.9.2",
"typescript": "5.1.6"
},
"imports": {
"#pipeline-utils": "./pipeline-utils/index.ts",

View file

@ -8,15 +8,6 @@ if [[ "$(type -t retry)" != "function" ]]; then
source "$(dirname "${BASH_SOURCE[0]}")/util.sh"
fi
# `rm -rf <ts-node node_modules dir>; npm install -g ts-node` will cause ts-node bin files to be messed up
# but literally just calling `npm install -g ts-node` a second time fixes it
# this is only on newer versions of npm
npm_install_global ts-node
if ! ts-node --version; then
npm_install_global ts-node
ts-node --version;
fi
cd '.buildkite'
retry 5 15 npm ci
cd -