Skip to content

Commit 586e3b8

Browse files
authored
feat: upgrade comparison / execution test packs to TS 6 (#1685)
* feat: upgrade execution tests to TS 6 * fix: execution test for TS 5.9.2 * chore: only test optionsCaching on ts 5.6+ * chore: start preparing comparison tests for TS 6 * chore: generate comparison tests stub * chore: update snapshots * fix: snapshots * fix: remove unused snapshots
1 parent 4a60de4 commit 586e3b8

3,813 files changed

Lines changed: 60865 additions & 123871 deletions

File tree

Some content is hidden

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

.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

.vscode/settings.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"[typescript]": {
33
"editor.defaultFormatter": "esbenp.prettier-vscode"
4+
},
5+
"github.copilot.nextEditSuggestions.enabled": true,
6+
"chat.tools.terminal.autoApprove": {
7+
"git blame": true,
8+
"sed": true
49
}
5-
}
10+
}

HISTORY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
`ts-loader` was started by [James Brantly](http://www.jbrantly.com/) back in January 2015. He created the initial codebase, wrote the comparison testpack and merrily maintained it until it reached v0.8.2.
44

5-
At that point [John Reilly](https://blog.johnnyreilly.com/) started maintaining ts-loader. [On October 16th 2016 to be exact](https://twitter.com/jbrantly/status/785931975064444928). The full story of how that came to be can be read here: https://blog.johnnyreilly.com/2016/11/but-you-cant-die-i-love-you-ts-loader.html
5+
At that point [John Reilly](https://johnnyreilly.com/) started maintaining ts-loader. [On October 16th 2016 to be exact](https://twitter.com/jbrantly/status/785931975064444928). The full story of how that came to be can be read here: https://johnnyreilly.com/but-you-cant-die-i-love-you-ts-loader
66

77
Since that time, John (who wrote this and finds it peculiar to refer to himself in the third person) has continued maintaining ts-loader. He appreciates any and all people that contribute. Who knows, maybe one day the mantle will be passed on again and someone else will step up and take ts-loader forwards. Who knows? It could be you ;-)

RELEASING.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

examples/fork-ts-checker-webpack-plugin/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"target": "es5",
3+
"target": "es6",
44
"lib": ["es6", "dom"],
55
"module": "esnext",
66
"moduleResolution": "node",

examples/project-references-example/tsconfig-base.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"declaration": true,
44
"declarationMap": true,
5-
"target": "es5",
5+
"target": "es6",
66
"module": "commonjs",
77
"moduleResolution": "node",
88
"esModuleInterop": true,

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';

test/comparison-tests/aliasResolution/expectedOutput-5.7/bundle.js

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)