-
-
Notifications
You must be signed in to change notification settings - Fork 237
/
Copy pathpackage.json
61 lines (61 loc) · 2.13 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
{
"name": "parse5-build-scripts",
"private": true,
"type": "module",
"workspaces": [
"packages/*",
"bench",
"test"
],
"devDependencies": {
"@eslint/js": "^9.17.0",
"eslint": "^9.18.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-unicorn": "^56.0.1",
"globals": "^15.14.0",
"husky": "^9.1.7",
"jest": "^29.7.0",
"lint-staged": "^15.4.1",
"outdent": "^0.8.0",
"prettier": "^3.4.2",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typedoc": "^0.27.6",
"typescript": "^5.7.3",
"typescript-eslint": "^8.21.0",
"@vitest/coverage-v8": "^3.0.1",
"vitest": "^3.0.1"
},
"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": "vitest run",
"unit-tests-coverage": "vitest run --coverage",
"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"
]
}
}