Switch from TypeScript to TypeScript Go. Use `pnpm tsgo` for Typechecks.

main
cpojer 2026-01-31 15:30:44 +09:00
parent 72ea3eedc9
commit 762652279b
No known key found for this signature in database
GPG Key ID: C29F94A3201118AF
7 changed files with 7 additions and 14 deletions

View File

@ -91,7 +91,7 @@ jobs:
command: pnpm canvas:a2ui:bundle && bunx vitest run command: pnpm canvas:a2ui:bundle && bunx vitest run
- runtime: bun - runtime: bun
task: build task: build
command: bunx tsc -p tsconfig.json command: bunx tsdown
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@ -44,7 +44,7 @@
- Run CLI in dev: `pnpm openclaw ...` (bun) or `pnpm dev`. - Run CLI in dev: `pnpm openclaw ...` (bun) or `pnpm dev`.
- Node remains supported for running built output (`dist/*`) and production installs. - Node remains supported for running built output (`dist/*`) and production installs.
- Mac packaging (dev): `scripts/package-mac-app.sh` defaults to current arch. Release checklist: `docs/platforms/mac/release.md`. - Mac packaging (dev): `scripts/package-mac-app.sh` defaults to current arch. Release checklist: `docs/platforms/mac/release.md`.
- Type-check/build: `pnpm build` (tsc) - Type-check/build: `pnpm build`
- Lint/format: `pnpm lint` (oxlint), `pnpm format` (oxfmt) - Lint/format: `pnpm lint` (oxlint), `pnpm format` (oxfmt)
- Tests: `pnpm test` (vitest); coverage: `pnpm test:coverage` - Tests: `pnpm test` (vitest); coverage: `pnpm test:coverage`

View File

@ -238,7 +238,6 @@
"signal-utils": "^0.21.1", "signal-utils": "^0.21.1",
"tsdown": "^0.20.1", "tsdown": "^0.20.1",
"tsx": "^4.21.0", "tsx": "^4.21.0",
"typescript": "^5.9.3",
"vitest": "^4.0.18", "vitest": "^4.0.18",
"wireit": "^0.14.12" "wireit": "^0.14.12"
}, },

View File

@ -254,9 +254,6 @@ importers:
tsx: tsx:
specifier: ^4.21.0 specifier: ^4.21.0
version: 4.21.0 version: 4.21.0
typescript:
specifier: ^5.9.3
version: 5.9.3
vitest: vitest:
specifier: ^4.0.18 specifier: ^4.0.18
version: 4.0.18(@opentelemetry/api@1.9.0)(@types/node@25.1.0)(@vitest/browser-playwright@4.0.18)(jiti@2.6.1)(lightningcss@1.30.2)(tsx@4.21.0)(yaml@2.8.2) version: 4.0.18(@opentelemetry/api@1.9.0)(@types/node@25.1.0)(@vitest/browser-playwright@4.0.18)(jiti@2.6.1)(lightningcss@1.30.2)(tsx@4.21.0)(yaml@2.8.2)
@ -513,9 +510,6 @@ importers:
playwright: playwright:
specifier: ^1.58.1 specifier: ^1.58.1
version: 1.58.1 version: 1.58.1
typescript:
specifier: ^5.9.3
version: 5.9.3
vitest: vitest:
specifier: 4.0.18 specifier: 4.0.18
version: 4.0.18(@opentelemetry/api@1.9.0)(@types/node@25.1.0)(@vitest/browser-playwright@4.0.18)(jiti@2.6.1)(lightningcss@1.30.2)(tsx@4.21.0)(yaml@2.8.2) version: 4.0.18(@opentelemetry/api@1.9.0)(@types/node@25.1.0)(@vitest/browser-playwright@4.0.18)(jiti@2.6.1)(lightningcss@1.30.2)(tsx@4.21.0)(yaml@2.8.2)
@ -11851,7 +11845,8 @@ snapshots:
typed-query-selector@2.12.0: {} typed-query-selector@2.12.0: {}
typescript@5.9.3: {} typescript@5.9.3:
optional: true
typical@4.0.0: {} typical@4.0.0: {}

View File

@ -110,8 +110,8 @@ merge_framework_machos() {
echo "📦 Ensuring deps (pnpm install)" echo "📦 Ensuring deps (pnpm install)"
(cd "$ROOT_DIR" && pnpm install --no-frozen-lockfile --config.node-linker=hoisted) (cd "$ROOT_DIR" && pnpm install --no-frozen-lockfile --config.node-linker=hoisted)
if [[ "${SKIP_TSC:-0}" != "1" ]]; then if [[ "${SKIP_TSC:-0}" != "1" ]]; then
echo "📦 Building JS (pnpm exec tsc)" echo "📦 Building JS (pnpm tsdown)"
(cd "$ROOT_DIR" && pnpm exec tsc -p tsconfig.json) (cd "$ROOT_DIR" && pnpm tsdown)
else else
echo "📦 Skipping TS build (SKIP_TSC=1)" echo "📦 Skipping TS build (SKIP_TSC=1)"
fi fi

View File

@ -25,7 +25,7 @@ ATTACH_ONLY=1
log() { printf '%s\n' "$*"; } log() { printf '%s\n' "$*"; }
fail() { printf 'ERROR: %s\n' "$*" >&2; exit 1; } fail() { printf 'ERROR: %s\n' "$*" >&2; exit 1; }
# Ensure local node binaries (rolldown, tsc, pnpm) are discoverable for the steps below. # Ensure local node binaries (rolldown, pnpm) are discoverable for the steps below.
export PATH="${ROOT_DIR}/node_modules/.bin:${PATH}" export PATH="${ROOT_DIR}/node_modules/.bin:${PATH}"
run_step() { run_step() {

View File

@ -18,7 +18,6 @@
"devDependencies": { "devDependencies": {
"@vitest/browser-playwright": "4.0.18", "@vitest/browser-playwright": "4.0.18",
"playwright": "^1.58.1", "playwright": "^1.58.1",
"typescript": "^5.9.3",
"vitest": "4.0.18" "vitest": "4.0.18"
} }
} }