Skip to content

Commit 4ca50dc

Browse files
committed
Switch GitHub install runtime from tsx to ts-node and prepare v0.0.6
1 parent 9e0183c commit 4ca50dc

File tree

4 files changed

+117
-292
lines changed

4 files changed

+117
-292
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Output format is documented in [API.md](./API.md).
1818
Global install from GitHub (short-term distribution):
1919

2020
```bash
21-
npm install -g github:PSPDFKit-labs/buildkite-cli#v0.0.5
21+
npm install -g github:PSPDFKit-labs/buildkite-cli#v0.0.6
2222
bkci --help
2323
```
2424

bin/bkci.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ import { fileURLToPath } from "node:url";
66

77
const scriptDirectory = path.dirname(fileURLToPath(import.meta.url));
88
const projectRoot = path.resolve(scriptDirectory, "..");
9-
const tsxCliPath = path.join(projectRoot, "node_modules", "tsx", "dist", "cli.mjs");
109
const entryPath = path.join(projectRoot, "src", "index.ts");
1110

12-
const child = spawn(process.execPath, [tsxCliPath, entryPath, ...process.argv.slice(2)], {
11+
const child = spawn(process.execPath, ["--loader", "ts-node/esm", entryPath, ...process.argv.slice(2)], {
1312
stdio: "inherit",
1413
});
1514

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "buildkite-cli",
3-
"version": "0.0.5",
3+
"version": "0.0.6",
44
"description": "LLM-friendly Buildkite CLI for CI inspection.",
55
"private": true,
66
"type": "module",
@@ -9,7 +9,7 @@
99
},
1010
"scripts": {
1111
"build": "tsc -p tsconfig.json",
12-
"dev": "tsx src/index.ts",
12+
"dev": "ts-node-esm src/index.ts",
1313
"check": "tsc --noEmit -p tsconfig.json",
1414
"test": "pnpm run build && node --test dist/**/*.test.js"
1515
},
@@ -18,10 +18,10 @@
1818
},
1919
"packageManager": "pnpm@9.15.9",
2020
"dependencies": {
21-
"tsx": "^4.20.0"
21+
"ts-node": "^10.9.2",
22+
"typescript": "^5.9.0"
2223
},
2324
"devDependencies": {
24-
"@types/node": "^24.0.0",
25-
"typescript": "^5.9.0"
25+
"@types/node": "^24.0.0"
2626
}
2727
}

0 commit comments

Comments
 (0)