Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
49 lines (49 loc) · 1.7 KB
/
Copy pathpackage.json
File metadata and controls
49 lines (49 loc) · 1.7 KB
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
{
"name": "parse5-build-scripts",
"private": true,
"type": "module",
"workspaces": [
"packages/*",
"bench",
"test"
],
"devDependencies": {
"@vitest/coverage-v8": "^5.1.2",
"husky": "^9.1.7",
"nano-staged": "^1.0.2",
"outdent": "^0.8.0",
"oxfmt": "^0.80.0",
"oxlint": "^1.95.0",
"oxlint-tsgolint": "^7.0.2009",
"ts-node": "^10.9.2",
"typedoc": "^0.28.20",
"typescript": "^6.0.3",
"vitest": "^5.1.2"
},
"scripts": {
"build": "tsc --build packages/*/tsconfig.build.json test/tsconfig.build.json",
"build:docs": "typedoc",
"format": "oxlint --fix && oxfmt '**/*.{js,ts,md,json,yml}'",
"lint": "oxlint --type-check && oxfmt '**/*.{js,ts,md,json,yml}' --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": "nano-staged",
"publish": "npm publish --workspaces",
"prepare": "husky",
"prepublish": "npm run build"
},
"nano-staged": {
"*.{js,ts}": [
"oxlint --fix --no-error-on-unmatched-pattern",
"oxfmt --no-error-on-unmatched-pattern"
],
"*.{md,json,yml}": [
"oxfmt --no-error-on-unmatched-pattern"
]
}
}