Commit c1ee5c1
build(js-legacy): upgrade TypeScript to 6.0 (#104)
Bump typescript to ^6.0.3 in clients/js-legacy and adjust the tsc-based
build for TS6:
- tsconfig.base.json: add "ignoreDeprecations": "6.0" (the node10/"Node"
module resolution is deprecated in TS6, TS5107) and "types": ["node"]
so Buffer/http/https globals from @types/node resolve (TS2591 under the
classic resolver).
- tsconfig.cjs.json / tsconfig.esm.json: add "rootDir": "./src" — TS6
requires an explicit rootDir for these composite projects (TS5011).
- tsconfig.json: set "types": ["node", "mocha"] so the test build still
sees mocha's globals after the base "types" narrowing.
Module resolution is left as-is and no lib override is added; only the
options TS6 actually requires were changed.
Verified locally with typescript@6.0.3: `pnpm build` (tsc --build),
`pnpm lint` (eslint), and `pnpm test` (mocha, 7 passing) all pass.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 0dc0940 commit c1ee5c1
5 files changed
Lines changed: 10 additions & 5 deletions
File tree
- clients/js-legacy
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
0 commit comments