diff --git a/package.json b/package.json index bd52a6e8..83937e17 100644 --- a/package.json +++ b/package.json @@ -3,10 +3,12 @@ "description": "VS Code API 是一系列你可以在 Visual Studio Code 扩展中调用的 JavaScript API。这个站点列出了所有扩展作者可以使用的 VS Code API。", "license": "MIT", "scripts": { + "prebuild": "rimraf docs/", "build": "typedoc", - "dev": "yarn build --watch & serve docs/" + "dev": "rimraf doc & yarn build --watch & serve docs/" }, "devDependencies": { + "rimraf": "^3.0.2", "serve": "^12.0.0", "typedoc": "^0.21.5", "typescript": "^4.3.5" diff --git a/typedoc.json b/typedoc.json index 1a27f570..f58b21a4 100644 --- a/typedoc.json +++ b/typedoc.json @@ -1,6 +1,6 @@ { - "name": "VS Code API", - "readme": "./README.md", + "name": "VS Code API 简体中文版", + "readme": "none", "sort": ["source-order"], "excludePrivate": true, "excludeProtected": true, diff --git a/yarn.lock b/yarn.lock index 183f1838..60c4339a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -268,7 +268,7 @@ get-stream@^4.0.0: dependencies: pump "^3.0.0" -glob@^7.1.7: +glob@^7.1.3, glob@^7.1.7: version "7.1.7" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.7.tgz#3b193e9233f01d42d0b3f78294bbeeb418f94a90" integrity sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ== @@ -544,6 +544,13 @@ registry-url@3.1.0: dependencies: rc "^1.0.1" +rimraf@^3.0.2: + version "3.0.2" + resolved "https://registry.npm.taobao.org/rimraf/download/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" + integrity sha1-8aVAK6YiCtUswSgrrBrjqkn9Bho= + dependencies: + glob "^7.1.3" + safe-buffer@5.1.2: version "5.1.2" resolved "https://registry.nlark.com/safe-buffer/download/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"