From 6cdd1dd96ed7da6f8f364f0963ad254d62d10df9 Mon Sep 17 00:00:00 2001 From: Justin Poehnelt Date: Wed, 10 Mar 2021 13:03:25 -0700 Subject: [PATCH] build: fix docs build (#131) --- .github/workflows/ci.yml | 1 + package.json | 2 +- tsconfig.json | 3 ++- typedoc.js | 6 +----- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0350e0d..61741e6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,4 +22,5 @@ jobs: - run: npm i - run: npm run lint - run: npm test + - run: npm run docs - uses: codecov/codecov-action@v1 diff --git a/package.json b/package.json index ae4b7cd..b05945f 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "module": "dist/index.esm.js", "types": "dist/index.d.ts", "scripts": { - "docs": "typedoc", + "docs": "typedoc src/index.ts", "format": "prettier *.json *.js e2e/* examples/*.html --write && eslint src/* --fix", "lint": "eslint src/*", "prepare": "rollup -c", diff --git a/tsconfig.json b/tsconfig.json index 627d3dc..ce57d86 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,7 +8,8 @@ "esModuleInterop": true, "lib": ["DOM", "ESNext"], "target": "ES6", - "moduleResolution": "node" + "moduleResolution": "node", + "skipLibCheck": true, }, "include": ["src/**/*"] } diff --git a/typedoc.js b/typedoc.js index 0709ed3..464938e 100644 --- a/typedoc.js +++ b/typedoc.js @@ -15,12 +15,8 @@ */ module.exports = { - mode: "file", - target: "es6", out: "docs", exclude: ["**/node_modules/**", "**/*.spec.ts", "**/*.test.ts"], - name: "", + name: "@googlemaps/markerwithlabels", excludePrivate: true, - excludeNotExported: true, - excludeExternals: true, };