diff --git a/package-lock.json b/package-lock.json index d85b3620fc..44ffaab1ea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4888,7 +4888,7 @@ }, "jsesc": { "version": "1.3.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", + "resolved": "http://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=", "dev": true }, diff --git a/package.json b/package.json index 0817dbbc0b..2953dfb889 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "tsc": "rimraf ./build && tsc -p .", "webpack": "rimraf ./build && webpack", "demo": "npm run build && npm run ts-node ./demo", - "typedoc": "typedoc src/index.ts", + "typedoc": "typedoc src/index.ts --tsconfig tsconfig.typedoc.json", "style": "prettier -l \"src/**/*.ts\"", "style.fix": "npm run style -- --write", "fix-types": "ts-node scripts/types-absolute-fixer.ts", diff --git a/tsconfig.json b/tsconfig.json index a2d4c199ef..115c08b802 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,36 +12,9 @@ "noUnusedLocals": true, "noUnusedParameters": true, "baseUrl": "./src", - "paths" : { - "/*": [ - "./*" - ] + "paths": { + "/*": ["./*"] } }, - "exclude": [ - "node_modules", - "tests", - "**/_*", - "demo", - "scripts", - "webpack.config.ts" - ], - "typedocOptions": { - "mode": "file", - "out": "docs/api", - "exclude": "test", - "theme": "default", - "ignoreCompilerErrors": true, - "excludePrivate": true, - "excludeProtected": true, - "excludeNotExported": true, - "excludeExternals": false, - "target": "ES6", - "moduleResolution": "node", - "preserveConstEnums": true, - "stripInternal": true, - "suppressExcessPropertyErrors": true, - "suppressImplicitAnyIndexErrors": true, - "module": "commonjs" - } + "exclude": ["node_modules", "tests", "**/_*", "demo", "scripts", "webpack.config.ts"] } diff --git a/tsconfig.typedoc.json b/tsconfig.typedoc.json new file mode 100644 index 0000000000..741f3906df --- /dev/null +++ b/tsconfig.typedoc.json @@ -0,0 +1,11 @@ +{ + "extends": "./tsconfig.json", + "typedocOptions": { + "out": "docs/api", + "exclude": "test", + "theme": "default", + "excludePrivate": true, + "excludeProtected": true, + "excludeExternals": false + } +}