refactor: migrate from tsx to bun as TypeScript runtime

Remove tsx dependency and update all dev scripts and documentation to use bun
as the primary TypeScript runtime for development. Consolidate process detection
logic in daemon.ts to check for dev mode via src/index.ts regardless of runtime.
This commit is contained in:
weishu
2025-12-25 22:13:58 +08:00
parent e9b1f9983d
commit 4314aececd
6 changed files with 66 additions and 65 deletions
+2 -3
View File
@@ -44,8 +44,8 @@
"test": "bun run tools:unpack && vitest run",
"test:win": "vitest run",
"dev": "bun src/index.ts",
"dev:local-server": "tsx --env-file .env.dev-local-server src/index.ts",
"dev:integration-test-env": "tsx --env-file .env.integration-test src/index.ts",
"dev:local-server": "bun --env-file .env.dev-local-server src/index.ts",
"dev:integration-test-env": "bun --env-file .env.integration-test src/index.ts",
"release-all": "bun run scripts/release-all.ts"
},
"dependencies": {
@@ -77,7 +77,6 @@
"eslint-config-prettier": "^10",
"shx": "^0.3.3",
"ts-node": "^10",
"tsx": "^4.20.6",
"typescript": "^5",
"vitest": "^3.2.4"
},