Skip to content

Commit a955e18

Browse files
committed
docs
1 parent e8f9d31 commit a955e18

2 files changed

Lines changed: 4 additions & 10 deletions

File tree

website/docs/en/guide/cli/lib.mdx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,8 @@ The command loads the library configuration registered with [`define.lib()`](../
1717
Examples:
1818

1919
```bash
20-
# Build ESM output and generate declaration files
21-
rs lib --format esm --dts
22-
23-
# Build CommonJS output without bundling modules
24-
rs lib --format cjs --no-bundle
20+
# Build and generate declaration files
21+
rs lib --dts
2522

2623
# Rebuild when files change
2724
rs lib --watch

website/docs/zh/guide/cli/lib.mdx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,8 @@ rs lib [command] [options]
1717
示例:
1818

1919
```bash
20-
# 构建 ESM 产物并生成声明文件
21-
rs lib --format esm --dts
22-
23-
# 构建不打包模块的 CommonJS 产物
24-
rs lib --format cjs --no-bundle
20+
# 构建产物并生成声明文件
21+
rs lib --dts
2522

2623
# 在文件变化时重新构建
2724
rs lib --watch

0 commit comments

Comments
 (0)