diff --git a/.eslintignore b/.eslintignore index 41c59cf7..91e0bf60 100644 --- a/.eslintignore +++ b/.eslintignore @@ -2,4 +2,5 @@ test/data/html5lib-tests test/data/html5lib-tests-fork packages/*/dist/ test/dist/ +docs/build/ node_modules diff --git a/package.json b/package.json index 6cccf1f3..a6e6651f 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "build": "npm run build:esm && npm run build:cjs", "build:esm": "tsc --build packages/* test", "build:cjs": "tsc -p packages/parse5/tsconfig.cjs.json && echo '{\"type\":\"commonjs\"}' > packages/parse5/dist/cjs/package.json", - "build:docs": "typedoc .", + "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", diff --git a/tsconfig.json b/tsconfig.json index fc9e1c5f..767e2083 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -21,6 +21,8 @@ "out": "docs/build", "name": "parse5", "readme": "README.md", + "emit": "docs", + "excludeInternal": true, "entryPointStrategy": "packages" } }