Skip to content

Commit 96c75bf

Browse files
committed
feat: upgrade execution tests to TS 6
1 parent 4a60de4 commit 96c75bf

36 files changed

Lines changed: 448 additions & 478 deletions

File tree

.github/workflows/push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
strategy:
5050
matrix:
5151
node: [24, 22]
52-
ts: [5.0.4, 5.1.3, 5.2.2, 5.3.3, 5.4.2, 5.5.3, 5.6.2, 5.7.2, 5.8.2, 5.9.2] # next excluded for now
52+
ts: [5.0.4, 5.1.3, 5.2.2, 5.3.3, 5.4.2, 5.5.3, 5.6.2, 5.7.2, 5.8.2, 5.9.2, 6.0.2] # next excluded for now
5353
runs-on: ubuntu-latest
5454
steps:
5555
- uses: actions/checkout@v6
@@ -76,7 +76,7 @@ jobs:
7676
strategy:
7777
matrix:
7878
node: [24, 22]
79-
ts: [5.0.4, 5.1.3, 5.2.2, 5.3.3, 5.4.2, 5.5.3, 5.6.2, 5.7.2, 5.8.2, 5.9.2] # next excluded for now
79+
ts: [5.0.4, 5.1.3, 5.2.2, 5.3.3, 5.4.2, 5.5.3, 5.6.2, 5.7.2, 5.8.2, 5.9.2, 6.0.2] # next excluded for now
8080
runs-on: windows-latest
8181
steps:
8282
- uses: actions/checkout@v6

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"mocha": "^6.0.0",
9595
"prettier": "^2.0.5",
9696
"rimraf": "^2.6.2",
97-
"typescript": "^5.9.2",
97+
"typescript": "^6.0.2",
9898
"webpack": "^5.74.0",
9999
"webpack-cli": "^4.10.0"
100100
},

src/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"compilerOptions": {
33
"lib": ["es2018"],
4+
"types": ["node"],
45
"target": "es2018",
56
"noImplicitReturns": true,
67
"noUnusedLocals": true,
78
"noUnusedParameters": true,
89
"strict": true,
910
"module": "commonjs",
10-
"moduleResolution": "node",
11+
"moduleResolution": "bundler",
1112
"declaration": true,
1213
"outDir": "../dist",
1314
"declarationDir": "../dist",

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Chalk } from 'chalk';
22
import * as fs from 'fs';
3-
import * as micromatch from 'micromatch';
3+
import micromatch from 'micromatch';
44
import * as path from 'path';
55
import * as webpack from 'webpack';
66
import type * as typescript from 'typescript';
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"allowJs": true,
4-
"moduleResolution": "node",
4+
"moduleResolution": "bundler",
55
"noEmitOnError": true
66
}
7-
}
7+
}
Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
{
2-
"compilerOptions": {
3-
"allowSyntheticDefaultImports": true,
4-
"moduleResolution": "node",
5-
"module": "es2015",
6-
"noEmitOnError": true,
7-
"noImplicitAny": true,
8-
"preserveConstEnums": true,
9-
"removeComments": false,
10-
"target": "es2015"
11-
}
12-
}
2+
"compilerOptions": {
3+
"allowSyntheticDefaultImports": true,
4+
"moduleResolution": "bundler",
5+
"module": "es2015",
6+
"noEmitOnError": true,
7+
"noImplicitAny": true,
8+
"preserveConstEnums": true,
9+
"removeComments": false,
10+
"target": "es2015",
11+
"types": [
12+
"jasmine"
13+
]
14+
}
15+
}
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
22
"compilerOptions": {
3-
"noEmitOnError": true
3+
"noEmitOnError": true,
4+
"types": [
5+
"jasmine"
6+
],
7+
"module": "commonjs"
48
}
5-
}
9+
}
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"compilerOptions": {
3-
"allowJs": true,
4-
"module": "es2015",
5-
"moduleResolution": "node",
6-
"noEmitOnError": true,
7-
"noImplicitAny": false,
8-
"sourceMap": true,
9-
"target": "es2015"
10-
}
11-
}
2+
"compilerOptions": {
3+
"allowJs": true,
4+
"module": "es2015",
5+
"moduleResolution": "bundler",
6+
"noEmitOnError": true,
7+
"noImplicitAny": false,
8+
"sourceMap": true,
9+
"target": "es2015"
10+
}
11+
}
Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
{
2-
"compileOnSave": false,
3-
"compilerOptions": {
4-
"allowSyntheticDefaultImports": true,
5-
"lib": ["dom", "es2015", "es2016"],
6-
"module": "es2015",
7-
"moduleResolution": "node",
8-
"noEmitOnError": true,
9-
"noImplicitAny": true,
10-
"preserveConstEnums": true,
11-
"removeComments": false,
12-
"target": "es2016"
13-
}
14-
}
2+
"compileOnSave": false,
3+
"compilerOptions": {
4+
"allowSyntheticDefaultImports": true,
5+
"lib": [
6+
"dom",
7+
"es2015",
8+
"es2016"
9+
],
10+
"module": "es2015",
11+
"moduleResolution": "bundler",
12+
"noEmitOnError": true,
13+
"noImplicitAny": true,
14+
"preserveConstEnums": true,
15+
"removeComments": false,
16+
"target": "es2016",
17+
"types": [
18+
"jasmine"
19+
]
20+
}
21+
}
Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
{
2-
"compilerOptions": {
3-
"allowSyntheticDefaultImports": true,
4-
"lib": [
5-
"dom",
6-
"es2015"
7-
],
8-
"jsx": "preserve",
9-
"target": "es2015",
10-
"module": "es2015",
11-
"moduleResolution": "node",
12-
"noEmitOnError": true,
13-
"noImplicitAny": true,
14-
"noUnusedLocals": true,
15-
"noUnusedParameters": true,
16-
"removeComments": false,
17-
"preserveConstEnums": true,
18-
"sourceMap": true,
19-
"skipLibCheck": true
20-
}
21-
}
2+
"compilerOptions": {
3+
"allowSyntheticDefaultImports": true,
4+
"lib": [
5+
"dom",
6+
"es2015"
7+
],
8+
"jsx": "preserve",
9+
"target": "es2015",
10+
"module": "es2015",
11+
"moduleResolution": "bundler",
12+
"noEmitOnError": true,
13+
"noImplicitAny": true,
14+
"noUnusedLocals": true,
15+
"noUnusedParameters": true,
16+
"removeComments": false,
17+
"preserveConstEnums": true,
18+
"sourceMap": true,
19+
"skipLibCheck": true,
20+
"types": [
21+
"jasmine"
22+
]
23+
}
24+
}

0 commit comments

Comments
 (0)