Skip to content

Commit fa9f440

Browse files
committed
build(deps): upgrade typescript to 5.9.3
Added explicit `import * as ts` statements across plugin source files instead of declaring it globally. See #227 (comment)
1 parent 526766c commit fa9f440

File tree

94 files changed

+207
-130
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+207
-130
lines changed

.eslintrc.json

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,6 @@
1515
"@typescript-eslint/no-explicit-any": "off",
1616
// better to fix rule
1717
"unicorn/consistent-destructuring": "off",
18-
"@typescript-eslint/no-restricted-imports": [
19-
"error",
20-
{
21-
"patterns": [
22-
{
23-
"group": [
24-
"typescript*",
25-
"!../*"
26-
],
27-
"message": "Use global ts type and variable instead"
28-
// "allowTypeImports": true
29-
}
30-
]
31-
}
32-
],
3318
"unicorn/switch-case-braces": "off",
3419
"@typescript-eslint/consistent-type-imports": "off",
3520
"@typescript-eslint/ban-types": "off",
@@ -60,7 +45,9 @@
6045
"@typescript-eslint/prefer-regexp-exec": "off",
6146
"no-negated-condition": "off",
6247
"@typescript-eslint/prefer-nullish-coalescing": "off",
63-
"unicorn/prefer-set-has": "off"
48+
"unicorn/prefer-set-has": "off",
49+
// Allow typescript imports in plugin code (needed for TS 5.5+ upgrade)
50+
"@typescript-eslint/no-restricted-imports": "off"
6451
}
6552
}
6653
]

buildTsPlugin.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const result = await buildTsPlugin('typescript', undefined, undefined, {
1313
banner: {
1414
js: 'let ts, tsFull;',
1515
},
16-
external: ['perf_hooks'],
16+
external: ['perf_hooks', 'typescript', 'typescript/lib/tsserverlibrary'],
1717
plugins: [
1818
{
1919
name: 'watch-notifier',

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
"tsm": "^2.3.0",
161161
"type-fest": "^2.13.1",
162162
"typed-jsonfile": "^0.2.1",
163-
"typescript": "5.3.3",
163+
"typescript": "5.9.3",
164164
"vite": "^4.1.1",
165165
"vitest": "^0.34.6",
166166
"vitest-environment-ts-plugin": "./vitest-environment-ts-plugin",
@@ -207,7 +207,7 @@
207207
"require-from-string": "^2.0.2",
208208
"semver": "^7.3.8",
209209
"string-dedent": "^3.0.1",
210-
"ts-expose-internals": "^5.3.3",
210+
"ts-expose-internals": "^5.6.3",
211211
"ts-simple-type": "^1.0.7",
212212
"unleashed-typescript": "^1.3.0",
213213
"vscode-framework": "^0.0.18",
@@ -232,4 +232,4 @@
232232
}
233233
},
234234
"packageManager": "pnpm@10.12.1+sha512.f0dda8580f0ee9481c5c79a1d927b9164f2c478e90992ad268bbb2465a736984391d6333d2c327913578b2804af33474ca554ba29c04a8b13060a717675ae3ac"
235-
}
235+
}

0 commit comments

Comments
 (0)