File tree Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -125,9 +125,20 @@ Options:
125125 --override override files in target directory
126126```
127127
128- ## Migration
128+ ## Migrate from Existing Projects
129129
130130If you need to migrate from an existing project to Rslib, you can refer to the following guides:
131131
132132- [ Migrating from tsup] ( /guide/migration/tsup )
133133- [ Migrating from Modern.js Module] ( /guide/migration/modernjs-module )
134+
135+ ### Other Projects
136+
137+ For other types of projects, you can manually install the [ @rslib/core ] ( https://www.npmjs.com/package/@rslib/core ) package:
138+
139+ <PackageManagerTabs command = " add @rslib/core -D" />
140+
141+ Then refer to the guide and documentation to enable the features you need:
142+
143+ - See [ CLI] ( /guide/basic/cli ) to learn about available CLI commands.
144+ - See [ Configure Rslib] ( /guide/basic/configure-rslib ) to configure Rslib.
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ nvm install --lts
2121nvm use --lts
2222```
2323
24- ## 创建一个 Rslib 项目
24+ ## 创建 Rslib 项目
2525
2626你可以使用 [ ` create-rslib ` ] ( https://www.npmjs.com/package/create-rslib ) 创建一个 Rslib 项目。运行以下命令:
2727
@@ -125,9 +125,20 @@ Options:
125125 --override override files in target directory
126126```
127127
128- ## 迁移
128+ ## 从现有项目迁移
129129
130130如果你需要从一个现有项目迁移迁移到 Rslib,可以参考以下指南:
131131
132132- [ 从 tsup 迁移] ( /guide/migration/tsup )
133133- [ 从 Modern.js Module 迁移] ( /guide/migration/modernjs-module )
134+
135+ ### 其他项目
136+
137+ 对于其他类型的项目,你可以手动安装 [ @rslib/core ] ( https://www.npmjs.com/package/@rslib/core ) 包:
138+
139+ <PackageManagerTabs command = " add @rslib/core -D" />
140+
141+ 然后参考指南和文档,按需启用各个功能:
142+
143+ - 参考 [ 命令行工具] ( /guide/basic/cli ) 来了解可用的 CLI 命令。
144+ - 参考 [ 配置 Rslib] ( /guide/basic/configure-rslib ) 进行配置。
You can’t perform that action at this time.
0 commit comments