@deot/docs-cli 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -36,6 +36,8 @@ pnpm exec doc dev --workspace .
|
|
|
36
36
|
|
|
37
37
|
启动 Vite 开发服务。该模式会向 HTML 注入 `window.__DOCS_RUNTIME__`,提供本地资源寻址、`/__docs/events` SSE、已加载资源的更新通知,以及 `PUT /__docs/page` 页面保存入口。保存规则见 [`@deot/docs-dever`](../dever/README.md)。
|
|
38
38
|
|
|
39
|
+
development 还会把工作区里带 `src/index.ts` 或 `index.ts` 的包编成浏览器 ESM,地址是 `/__docs/module/<包名>`。站点在 `index.html` 里用 `window.__DOCS_RUNTIME__?.mode !== 'development'` 决定 `$docs.modules`:开发时指向这些本地地址,直接打开 HTML 时继续用 CDN。`vue` 以及其它非工作区依赖保持裸导入,仍由 Playground 的 import map 解析。preview 和 build 不提供该地址。
|
|
40
|
+
|
|
39
41
|
```bash
|
|
40
42
|
pnpm exec doc dev --workspace site
|
|
41
43
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deot/docs-cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"access": "public"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@deot/docs-dever": "^1.1.
|
|
16
|
+
"@deot/docs-dever": "^1.1.2",
|
|
17
17
|
"commander": "^15.0.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|