Skip to content

Commit 64f9535

Browse files
committed
chore: upgrade TypeScript to 5.9.3 and enable .ts imports
- Upgrade TypeScript from 5.0.4 to 5.9.3 - Update eslint, prettier, and related dev dependencies - Enable `module: nodenext` and `rewriteRelativeImportExtensions` in tsconfigs - Rewrite all relative imports from .js to .ts extensions - Add `type` keyword to type-only imports across source files - Remove TypeScript parameter properties from constructors (DevServer, PluginSyntaxError, WebSocketsManager) - Fix internal-ip CJS interop for nodenext module resolution - Add @ts-ignore for deprecated puppeteer accessibility API Zero runtime behavior change — output remains CJS. Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ce7a735 commit 64f9535

237 files changed

Lines changed: 1209 additions & 3398 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.

package-lock.json

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

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,26 +57,26 @@
5757
"@types/fs-extra": "^11.0.4",
5858
"@types/mocha": "^10.0.1",
5959
"@types/node": "*",
60-
"@typescript-eslint/eslint-plugin": "^5.3.0",
61-
"@typescript-eslint/parser": "^5.59.1",
60+
"@typescript-eslint/eslint-plugin": "^8.48.0",
61+
"@typescript-eslint/parser": "^8.48.0",
6262
"alex": "^11.0.0",
6363
"chai": "^4.3.4",
6464
"concurrently": "^8.0.1",
6565
"deepmerge": "^4.2.2",
6666
"dev-to-git": "^1.4.1",
67-
"eslint": "^8.1.0",
68-
"eslint-config-prettier": "^8.3.0",
67+
"eslint": "^8.57.1",
68+
"eslint-config-prettier": "^9.1.0",
6969
"hanbi": "^1.0.1",
7070
"husky": "^9.1.7",
7171
"lint-staged": "^15.2.11",
7272
"mocha": "^10.8.2",
7373
"nanocolors": "^0.2.1",
74-
"prettier": "^2.4.1",
74+
"prettier": "^3.7.1",
7575
"prettier-plugin-package": "^1.3.0",
7676
"rimraf": "^4.4.1",
7777
"rollup": "^4.4.0",
7878
"ts-node": "^10.4.0",
79-
"typescript": "~5.0.4",
79+
"typescript": "^5.9.3",
8080
"wireit": "^0.14.2"
8181
},
8282
"eslintConfig": {

packages/browser-logs/src/deserialize.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ParseStackTraceOptions, parseStackTrace } from './parseStackTrace.js';
1+
import { ParseStackTraceOptions, parseStackTrace } from './parseStackTrace.ts';
22

33
const KEY_WTR_TYPE = '__WTR_TYPE__';
44
const KEY_CONSTRUCTOR_NAME = '__WTR_CONSTRUCTOR_NAME__';

packages/browser-logs/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
export { deserialize } from './deserialize.js';
2-
export { browserScript } from './browserScript.js';
1+
export { deserialize } from './deserialize.ts';
2+
export { browserScript } from './browserScript.ts';
33
export {
44
MapBrowserUrl,
55
parseStackTrace,
66
StackLocation,
77
MapStackLocation,
8-
} from './parseStackTrace.js';
8+
} from './parseStackTrace.ts';

packages/browser-logs/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
{
44
"extends": "../../tsconfig.node-base.json",
55
"compilerOptions": {
6-
"module": "commonjs",
76
"outDir": "./dist",
87
"rootDir": "./src",
98
"composite": true,

packages/config-loader/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
{
44
"extends": "../../tsconfig.node-base.json",
55
"compilerOptions": {
6-
"module": "commonjs",
76
"outDir": "./dist",
87
"rootDir": "./src",
98
"composite": true,

packages/dev-server-core/src/dom5/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* subject to an additional IP rights grant found at
1212
* http://polymer.github.io/PATENTS.txt
1313
*/
14-
export * from './modification.js';
15-
export * from './predicates.js';
16-
export * from './util.js';
17-
export * from './walking.js';
14+
export * from './modification.ts';
15+
export * from './predicates.ts';
16+
export * from './util.ts';
17+
export * from './walking.ts';

packages/dev-server-core/src/dom5/iteration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
* http://polymer.github.io/PATENTS.txt
1313
*/
1414

15-
import { isElement, Predicate, predicates as p } from './predicates.js';
16-
import { defaultChildNodes, GetChildNodes } from './util.js';
15+
import { isElement, Predicate, predicates as p } from './predicates.ts';
16+
import { defaultChildNodes, GetChildNodes } from './util.ts';
1717

1818
/**
1919
* Applies `mapfn` to `node` and the tree below `node`, yielding a flattened

packages/dev-server-core/src/dom5/modification.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
*/
1414
import cloneObject from 'clone';
1515

16-
import { isDocumentFragment, predicates as p } from './predicates.js';
17-
import { queryAll } from './walking.js';
16+
import { isDocumentFragment, predicates as p } from './predicates.ts';
17+
import { queryAll } from './walking.ts';
1818

1919
function newTextNode(value: string): any {
2020
return {

packages/dev-server-core/src/dom5/predicates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* http://polymer.github.io/PATENTS.txt
1414
*/
1515

16-
import { getAttribute, getAttributeIndex, getTextContent } from './util.js';
16+
import { getAttribute, getAttributeIndex, getTextContent } from './util.ts';
1717

1818
/**
1919
* Match the text inside an element, textnode, or comment

0 commit comments

Comments
 (0)