Skip to content

Commit 85679ba

Browse files
committed
build: bump typescript to latest
1 parent cc1f630 commit 85679ba

17 files changed

+58
-55
lines changed

examples/js-with-babel/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
"cross-env": "^7.0.3",
1818
"jest": "^29.7.0",
1919
"ts-jest": "^29.3.0",
20-
"typescript": "~5.5.4"
20+
"typescript": "~5.8.2"
2121
}
2222
}

examples/js-with-babel/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "@tsconfig/strictest/tsconfig.json",
33
"compilerOptions": {
4-
"module": "Node16",
4+
"module": "CommonJS",
55
"target": "ESNext",
66
"allowJs": true,
77
"types": ["jest"],

examples/js-with-ts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"cross-env": "^7.0.3",
1515
"jest": "^29.7.0",
1616
"ts-jest": "^29.3.0",
17-
"typescript": "~5.5.4"
17+
"typescript": "~5.8.2"
1818
}
1919
}

examples/js-with-ts/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "@tsconfig/strictest/tsconfig.json",
33
"compilerOptions": {
4-
"module": "Node16",
4+
"module": "CommonJS",
55
"target": "ESNext",
66
"allowJs": true,
77
"types": ["jest"],

examples/monorepo-app/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
"cross-env": "^7.0.3",
1414
"jest": "^29.7.0",
1515
"ts-jest": "^29.3.0",
16-
"typescript": "~5.5.4"
16+
"typescript": "~5.8.2"
1717
}
1818
}

examples/monorepo-app/tsconfig.base.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"extends": "@tsconfig/strictest/tsconfig.json",
33
"compilerOptions": {
44
"target": "ESNext",
5-
"module": "Node16",
5+
"module": "CommonJS",
66
"lib": ["ESNext", "dom"],
77
"types": ["jest"],
88
"isolatedModules": false

examples/package-lock.json

+26-24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/react-app/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"jest": "^29.7.0",
3131
"jest-environment-jsdom": "^29.7.0",
3232
"ts-jest": "^29.3.0",
33-
"typescript": "^5.5.4",
33+
"typescript": "~5.8.2",
3434
"vite": "^6.2.3"
3535
}
3636
}

examples/react-app/tsconfig.spec.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"module": "Node16",
5-
"moduleResolution": "Node16",
4+
"module": "CommonJS",
65
"target": "ESNext",
76
"types": ["jest"],
87
"isolatedModules": false

examples/ts-only/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"cross-env": "^7.0.3",
1515
"jest": "^29.7.0",
1616
"ts-jest": "^29.3.0",
17-
"typescript": "~5.5.4"
17+
"typescript": "~5.8.2"
1818
}
1919
}

examples/ts-only/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "@tsconfig/strictest/tsconfig.json",
33
"compilerOptions": {
4-
"module": "Node16",
4+
"module": "CommonJS",
55
"target": "ESNext",
66
"types": ["jest"],
77
"isolatedModules": false

examples/type-module/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
"cross-env": "^7.0.3",
1616
"jest": "^29.7.0",
1717
"ts-jest": "^29.3.0",
18-
"typescript": "~5.5.4"
18+
"typescript": "~5.8.2"
1919
}
2020
}

package-lock.json

+8-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
"memfs": "^4.17.0",
133133
"prettier": "^2.8.8",
134134
"rimraf": "^5.0.10",
135-
"typescript": "~5.5.4",
135+
"typescript": "~5.8.2",
136136
"typescript-eslint": "^8.28.0"
137137
},
138138
"engines": {

src/transpilers/typescript/transpile-module.spec.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ describe('transpileModules', () => {
5656
const esmModernNodeFilePath = path.join(workspaceRoot, 'esm-node-modern', 'foo.ts')
5757
const mtsFilePath = path.join(workspaceRoot, 'esm-node-modern', 'foo.mts')
5858
const cjsModernNodeFilePath = path.join(workspaceRoot, 'cjs-node-modern', 'foo.ts')
59-
const ctsFilePath = path.join(workspaceRoot, 'esm-node-modern', 'foo.cts')
59+
const ctsFilePath = path.join(workspaceRoot, 'cjs-node-modern', 'foo.cts')
6060
vol.fromJSON(
6161
{
6262
'./esm-node-modern/package.json': JSON.stringify({
@@ -82,7 +82,7 @@ describe('transpileModules', () => {
8282
8383
console.log(foo);
8484
`,
85-
'./esm-node-modern/foo.cts': `
85+
'./cjs-node-modern/foo.cts': `
8686
import { foo } from 'foo';
8787
8888
console.log(foo);
@@ -162,7 +162,7 @@ describe('transpileModules', () => {
162162
})
163163

164164
expect(omitLeadingWhitespace(result.outputText)).toContain(dedent`
165-
import { foo } from 'foo';
165+
const foo_1 = require("foo");
166166
`)
167167
})
168168
})

website/package-lock.json

+8-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@docusaurus/tsconfig": "^3.7.0",
3232
"@docusaurus/types": "^3.7.0",
3333
"@types/react": "^18.3.3",
34-
"typescript": "~5.5.4"
34+
"typescript": "~5.8.2"
3535
},
3636
"browserslist": {
3737
"production": [

0 commit comments

Comments
 (0)