The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 03:37 UTC
| 1 | #!/bin/sh |
| 2 | # VS Code's TypeScript 7 extension starts `<tsdk>/tsgo --lsp --stdio`. Exec Effect's patched tsrs |
| 3 | # directly: through the effect-tsgo Node launcher, the LSP's stdin read intermittently fails (EAGAIN). |
| 4 | exec "$(cd "$(dirname "$0")/../.." && node -e ' |
| 5 | const { createRequire } = require("node:module"); |
| 6 | const fs = require("node:fs"); |
| 7 | const path = require("node:path"); |
| 8 | const platform = `@effect/tsgo-${process.platform}-${process.arch}/package.json`; |
| 9 | const dir = path.join(path.dirname(createRequire(require.resolve("@effect/tsgo/package.json")).resolve(platform)), "artifacts/tsrs"); |
| 10 | process.stdout.write(path.join(dir, fs.readdirSync(dir).sort().at(-1), "tsrs")); |
| 11 | ')" "$@" |