-
-
Notifications
You must be signed in to change notification settings - Fork 236
/
package.json
77 lines (77 loc) · 2.6 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"name": "parse5-build-scripts",
"private": true,
"type": "module",
"workspaces": [
"packages/*",
"bench",
"test"
],
"devDependencies": {
"@eslint/js": "^9.17.0",
"@types/jest": "^29.5.14",
"eslint": "^9.17.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-unicorn": "^56.0.1",
"globals": "^15.14.0",
"husky": "^9.1.7",
"jest": "^29.7.0",
"lint-staged": "^15.2.11",
"outdent": "^0.8.0",
"prettier": "^3.4.2",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typedoc": "^0.27.5",
"typescript": "^5.7.2",
"typescript-eslint": "^8.18.2"
},
"scripts": {
"build": "npm run build:esm && npm run build:cjs --workspaces --if-present",
"build:esm": "tsc --build packages/* test",
"build:docs": "typedoc",
"prettier": "prettier '**/*.{js,ts,md,json,yml}' --log-level warn",
"format": "npm run format:es && npm run format:prettier",
"format:es": "npm run lint:es -- --fix",
"format:prettier": "npm run prettier -- --write",
"lint": "npm run lint:es && npm run lint:prettier",
"lint:es": "eslint .",
"lint:prettier": "npm run prettier -- --check",
"unit-tests": "NODE_OPTIONS=--experimental-vm-modules jest",
"test": "npm run lint && npm run unit-tests",
"generate-feedback-tests": "node --loader ts-node/esm scripts/generate-parser-feedback-test/index.ts test/data/html5lib-tests/tree-construction/*.dat",
"bench-perf": "npm run build && node bench/perf/index.js",
"bench-memory-sax": "npm run build && node bench/memory/sax-parser.js",
"preversion": "npm test",
"pre-commit": "lint-staged",
"publish": "npm publish --workspaces",
"prepare": "husky install",
"prepublish": "npm run build"
},
"lint-staged": {
"*.{js,ts}": [
"prettier --write",
"eslint --fix"
],
"*.{md,json,yml}": [
"prettier --write"
]
},
"jest": {
"preset": "ts-jest/presets/default-esm",
"testEnvironment": "node",
"coverageProvider": "v8",
"moduleNameMapper": {
"^(parse5[^/]*)/dist/(.*?)(?:\\.js)?$": "<rootDir>/packages/$1/lib/$2",
"^(parse5[^/]*)$": "<rootDir>/packages/$1/lib/index.ts",
"^(.*)\\.js$": [
"$1",
"$1.js"
]
},
"coveragePathIgnorePatterns": [
"node_modules",
"bench",
"test"
]
}
}