{ "name": "parse5-build-scripts", "private": true, "type": "module", "workspaces": [ "packages/*", "bench", "test" ], "devDependencies": { "@types/jest": "^27.4.1", "@typescript-eslint/eslint-plugin": "^5.20.0", "@typescript-eslint/parser": "^5.20.0", "eslint": "^8.13.0", "eslint-config-prettier": "^8.5.0", "eslint-plugin-unicorn": "^42.0.0", "husky": "^7.0.4", "jest": "^27.5.1", "lint-staged": "^12.3.8", "outdent": "^0.8.0", "prettier": "^2.6.2", "ts-jest": "^27.1.4", "ts-node": "^10.7.0", "typedoc": "^0.22.15", "typescript": "^4.6.3" }, "scripts": { "build": "npm run build:esm && npm run build:cjs --workspaces --if-present", "build:esm": "tsc --build packages/* test", "build:docs": "node --max-old-space-size=8192 node_modules/.bin/typedoc .", "prettier": "prettier '**/*.{js,ts,md,json,yml}' --loglevel 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", "globals": { "ts-jest": { "useESM": true } }, "moduleNameMapper": { "^(parse5[^/]*)/dist/(.*?)(?:\\.js)?$": "/packages/$1/lib/$2", "^(parse5[^/]*)$": "/packages/$1/lib/index.ts", "^(.*)\\.js$": "$1" } } }