Skip to content

Commit 81e6e29

Browse files
committed
fix: apply parse5-utils JSDoc->TS conversion and fix type mismatches
- Convert parse5-utils from JSDoc .js to TypeScript with parse5 v8 API - Update parse5-utils package.json, tsconfig from fix/node24 - Fix polyfills-loader parse5 type imports for v8 compatibility Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6fadbb9 commit 81e6e29

6 files changed

Lines changed: 340 additions & 516 deletions

File tree

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/parse5-utils/index.mjs

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

packages/parse5-utils/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,17 @@
1717
"main": "dist/index.js",
1818
"exports": {
1919
".": {
20-
"types": "./index.d.ts",
21-
"import": "./index.mjs",
22-
"default": "./src/index.js"
20+
"types": "./dist/index.d.ts",
21+
"default": "./dist/index.js"
2322
}
2423
},
2524
"engines": {
2625
"node": ">=24.0.0"
2726
},
2827
"scripts": {
2928
"build": "tsc",
30-
"test:node": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\",\"moduleResolution\":\"node\"}' mocha \"test/**/*.test.{ts,js,mjs,cjs}\" --require ts-node/register --reporter dot",
31-
"test:watch": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\",\"moduleResolution\":\"node\"}' mocha \"test/**/*.test.{ts,js,mjs,cjs}\" --require ts-node/register --watch"
29+
"test:node": "node --test 'test/**/*.test.mjs'",
30+
"test:watch": "npm run test:node -- --watch"
3231
},
3332
"files": [
3433
"dist",

0 commit comments

Comments
 (0)