Skip to content

Commit 41f6277

Browse files
authored
chore: enable tsgo on typecheck (#605)
https://devblogs.microsoft.com/typescript/progress-on-typescript-7-december-2025/ <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Enhanced development tooling and type-checking workflow; added a new development dependency to support previews. * **Tests** * Improved network test stability by enabling request retry behavior for specific HTTP tests to reduce transient failures. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 8f13384 commit 41f6277

File tree

3 files changed

+77
-1
lines changed

3 files changed

+77
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"scripts": {
2626
"lint": "oxlint src test",
2727
"fmt": "oxfmt",
28-
"typecheck": "tsc --noEmit",
28+
"typecheck": "tsc --noEmit && tsgo --noEmit",
2929
"fmtcheck": "oxfmt --check .",
3030
"prebuild": "npm run clean",
3131
"build": "tsc --version && tshy && tshy-after && npm run build:version",
@@ -69,6 +69,7 @@
6969
"@types/qs": "^6.9.7",
7070
"@types/selfsigned": "^2.0.1",
7171
"@types/tar-stream": "^2.2.2",
72+
"@typescript/native-preview": "7.0.0-dev.20251208.1",
7273
"@ungap/structured-clone": "^1.2.1",
7374
"@vitest/coverage-v8": "^3.0.2",
7475
"busboy": "^1.6.0",

pnpm-lock.yaml

Lines changed: 73 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/urllib.options.allowH2.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ describe('urllib.options.allowH2.test.ts', () => {
99
let response = await urllib.request('https://registry.npmmirror.com', {
1010
allowH2: true,
1111
dataType: 'json',
12+
retry: 3,
1213
});
1314
assert.equal(response.status, 200);
1415

1516
response = await urllib.curl('https://registry.npmmirror.com', {
1617
allowH2: true,
1718
dataType: 'json',
19+
retry: 3,
1820
});
1921
assert.equal(response.status, 200);
2022
});

0 commit comments

Comments
 (0)