Skip to content

Commit cdb559d

Browse files
committed
chore: 添加npm演示包,优化部分代码
1 parent 665d6ee commit cdb559d

File tree

7 files changed

+11
-8
lines changed

7 files changed

+11
-8
lines changed

.npmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# 设置最新的淘宝镜像,加快安装依赖速度
2-
registry = https://registry.npmmirror.com # https://registry.npmjs.org 官方镜像(发布包需要改为官方镜像)
2+
registry = https://registry.npmmirror.com # https://registry.npmjs.org 官方镜像
33
# # 发包禁用 git 仓库的校验
44
# git-checks = false
55

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,11 @@ Additionally, the project includes automated scripts and continuous integration
5757
## 🚀 Quick Start(Demo)
5858
5959
```bash
60-
# @mylib can be changed to your own package name in one command using rename-pkg, e.g., @vue3-lib
61-
pnpm install @mylib/ui @mylib/utils @mylib/hooks @mylib/directives
60+
# Please replace the following package names with your own. You can use the rename-pkg command to change @mylib to your own package name, for example: pnpm rename-pkg "@mylib" "@vue3-lib"
61+
pnpm add @mylib/ui @mylib/utils @mylib/hooks @mylib/directives
62+
63+
# Example installation:
64+
pnpm add @hmflib/ui @hmflib/utils @hmflib/hooks @hmflib/directives
6265
```
6366
6467
### document

README.zh-CN.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,14 @@
5252
"rename-pkg": "bash ./scripts/rename-package.sh" // 一键重命名包,如:@mylib -> @vue3-lib
5353
```
5454

55-
## 🚀 快速开始(演示)
55+
## 🚀 快速开始
5656

5757
```bash
58-
# @mylib可以通过rename-pkg命令,一键更改为属于自己的包名,如@vue3-lib
58+
# 以下请替换为自己的包名,@mylib 可以通过 rename-pkg 命令,一键更改为属于自己的包名,如 pnpm rename-pkg "@mylib" "@vue3-lib"
5959
pnpm add @mylib/ui @mylib/utils @mylib/hooks @mylib/directives
60+
61+
# 演示安装:
62+
pnpm add @hmflib/ui @hmflib/utils @hmflib/hooks @hmflib/directives
6063
```
6164

6265
### apps/docs 文档

packages/directives/rollup.config.mjs

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import json from '@rollup/plugin-json';
44
import dts from 'rollup-plugin-dts';
55
// import terser from '@rollup/plugin-terser';
66

7-
/** @type {import('rollup').RollupOptions} */
87
export default defineConfig([
98
{
109
// 输入文件

packages/hooks/rollup.config.mjs

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import esbuild from 'rollup-plugin-esbuild';
33
import json from '@rollup/plugin-json';
44
import dts from 'rollup-plugin-dts';
55

6-
/** @type {import('rollup').RollupOptions} */
76
export default defineConfig([
87
{
98
// 输入文件
File renamed without changes.

packages/utils/rollup.config.mjs

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import dts from 'rollup-plugin-dts';
77

88
const __dirname = fileURLToPath(new URL('.', import.meta.url));
99

10-
/** @type {import('rollup').RollupOptions} */
1110
export default defineConfig([
1211
{
1312
// 输入文件

0 commit comments

Comments
 (0)