refactor: Integrate the @vben-core/shared package

This commit is contained in:
vben
2024-07-30 21:05:03 +08:00
parent e6403868fc
commit cf0ec053e4
223 changed files with 330 additions and 328 deletions

View File

@@ -1,6 +1,6 @@
# @vben/constants
用于多个 `app` 公用的常量,继承了 `@vben-core/constants` 的所有能力。业务上有通用常量可以放在这里。
用于多个 `app` 公用的常量,继承了 `@vben-core/shared/constants` 的所有能力。业务上有通用常量可以放在这里。
## 用法
@@ -9,11 +9,11 @@
```bash
# 进入目标应用目录,例如 apps/xxxx-app
# cd apps/xxxx-app
pnpm add @vben/hooks --workspace
pnpm add @vben/constants --workspace
```
### 使用
```ts
import { useNamespace } from '@vben/hooks';
import { DEFAULT_HOME_PATH } from '@vben/constants';
```

View File

@@ -20,6 +20,6 @@
}
},
"dependencies": {
"@vben-core/constants": "workspace:*"
"@vben-core/shared": "workspace:*"
}
}

View File

@@ -1,2 +1,2 @@
export * from './core';
export * from '@vben-core/constants';
export * from '@vben-core/shared/constants';