diff --git a/package.json b/package.json index 78832e89..3017a698 100644 --- a/package.json +++ b/package.json @@ -100,8 +100,8 @@ "build": "tsc --project ./tsconfig.build.json", "clean": "rimraf .nyc_output coverage dist docs/.vuepress/dist", "coverage": "nyc report --reporter lcov && opener coverage/lcov-report/index.html", - "docs": "vuepress dev docs", - "docs:build": "vuepress build docs", + "docs": "npm run build && vuepress dev docs", + "docs:build": "npm run build && vuepress build docs", "generate": "ts-node scripts/update.ts", "lint": "eslint --ext js,ts lib scripts tests/lib docs/.vuepress --ignore-pattern \"!.*\"", "lint:docs": "eslint --ext js,vue,md docs --ignore-pattern \"!.*\"",