Skip to content

Commit e618740

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 4141fad commit e618740

File tree

94 files changed

+209
-128
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

+209
-128
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
"tsm": "^2.3.0",
159159
"type-fest": "^2.13.1",
160160
"typed-jsonfile": "^0.2.1",
161-
"typescript": "5.3.3",
161+
"typescript": "5.9.3",
162162
"vite": "^4.1.1",
163163
"vitest": "^0.34.6",
164164
"vitest-environment-ts-plugin": "./vitest-environment-ts-plugin",
@@ -205,7 +205,7 @@
205205
"require-from-string": "^2.0.2",
206206
"semver": "^7.3.8",
207207
"string-dedent": "^3.0.1",
208-
"ts-expose-internals": "^5.3.3",
208+
"ts-expose-internals": "^5.6.3",
209209
"ts-simple-type": "^1.0.7",
210210
"unleashed-typescript": "^1.3.0",
211211
"vscode-framework": "^0.0.18",

0 commit comments

Comments
 (0)