diff --git a/.github/ISSUE_TEMPLATE/bug-report_cn.yaml b/.github/ISSUE_TEMPLATE/bug-report_cn.yaml index b1de7e61..747459d7 100644 --- a/.github/ISSUE_TEMPLATE/bug-report_cn.yaml +++ b/.github/ISSUE_TEMPLATE/bug-report_cn.yaml @@ -1,7 +1,7 @@ name: 🐞 Bug提交 description: 在使用软件或功能的过程中遇到了错误 title: '[Bug]: ' -labels: [ "bug?" ] +labels: ['bug?'] body: - type: markdown diff --git a/.github/ISSUE_TEMPLATE/bug-report_en.yaml b/.github/ISSUE_TEMPLATE/bug-report_en.yaml index a3a2f124..790d7ad7 100644 --- a/.github/ISSUE_TEMPLATE/bug-report_en.yaml +++ b/.github/ISSUE_TEMPLATE/bug-report_en.yaml @@ -1,7 +1,7 @@ name: 🐞 Bug Report description: Encountered an error while using the software or feature title: '[Bug]: ' -labels: [ "bug?" ] +labels: ['bug?'] body: - type: markdown diff --git a/.github/ISSUE_TEMPLATE/feature_request_cn.yaml b/.github/ISSUE_TEMPLATE/feature_request_cn.yaml index c98162f5..24e3e6aa 100644 --- a/.github/ISSUE_TEMPLATE/feature_request_cn.yaml +++ b/.github/ISSUE_TEMPLATE/feature_request_cn.yaml @@ -1,9 +1,9 @@ --- name: 🚀 功能请求 description: 提出一个想法以帮助我们改进W&B -title: "[功能]: " +title: '[功能]: ' labels: - - "功能请求" + - '功能请求' body: - type: markdown diff --git a/.github/ISSUE_TEMPLATE/feature_request_en.yaml b/.github/ISSUE_TEMPLATE/feature_request_en.yaml index 07fc41c0..7c155bf4 100644 --- a/.github/ISSUE_TEMPLATE/feature_request_en.yaml +++ b/.github/ISSUE_TEMPLATE/feature_request_en.yaml @@ -1,9 +1,9 @@ --- name: 🚀 Feature Request description: Suggest an idea to help us improve W&B -title: "[Feature]: " +title: '[Feature]: ' labels: - - "feature_request" + - 'feature_request' body: - type: markdown diff --git a/.github/workflows/opencode.yml b/.github/workflows/opencode.yml index 9f7fb9a4..075c7b32 100644 --- a/.github/workflows/opencode.yml +++ b/.github/workflows/opencode.yml @@ -31,4 +31,4 @@ jobs: GOOGLE_GENERATIVE_AI_API_KEY: ${{ secrets.GOOGLE_GENERATIVE_AI_API_KEY }} GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} with: - model: google/gemini-3-pro-preview \ No newline at end of file + model: google/gemini-3-pro-preview diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0bf7c92d..c93de2de 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,7 @@ permissions: on: push: tags: - - "v*" + - 'v*' jobs: release: diff --git a/CHANGELOG.md b/CHANGELOG.md index 23554449..7ef17c38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,5 @@ # Changelog - ## [v2.0.2](https://github.com/soybeanjs/soybean-admin/compare/v2.0.1...v2.0.2) (2025-12-23) ###    🐞 Bug Fixes @@ -25,7 +24,7 @@ - update QQ group image in README  -  by @soybeanjs [(46081)](https://github.com/soybeanjs/soybean-admin/commit/46081c36) - **projects**: - support theme presets to only set partial content.  -  by **Azir-11** [(9da84)](https://github.com/soybeanjs/soybean-admin/commit/9da847fb) - - support theme perset to override component library presets.  -  by **Azir-11** [(60517)](https://github.com/soybeanjs/soybean-admin/commit/605173a1) + - support theme perset to override component library presets.  -  by **Azir-11** [(60517)](https://github.com/soybeanjs/soybean-admin/commit/605173a1) - support pinning and unpinning of tabs  -  by **hooke** [(b8a76)](https://github.com/soybeanjs/soybean-admin/commit/b8a767d7) - hybrid layout mode auto select first deepest child menu  -  by @paynezhuang [(94019)](https://github.com/soybeanjs/soybean-admin/commit/9401925f) @@ -425,13 +424,13 @@ ###    🏡 Chore - **deps**: - - add vscode recommend plugin close #738  -  by @tu6ge in https://github.com/soybeanjs/soybean-admin/issues/739 and https://github.com/soybeanjs/soybean-admin/issues/738 [(61244)](https://github.com/soybeanjs/soybean-admin/commit/61244f0f) + - add vscode recommend plugin close #738  -  by @tu6ge in https://github.com/soybeanjs/soybean-admin/issues/739 and https://github.com/soybeanjs/soybean-admin/issues/738 [(61244)](https://github.com/soybeanjs/soybean-admin/commit/61244f0f) - update deps  -  by @soybeanjs [(41b5f)](https://github.com/soybeanjs/soybean-admin/commit/41b5f493) - update deps  -  by @soybeanjs [(3e4e1)](https://github.com/soybeanjs/soybean-admin/commit/3e4e17ab) ###    🤖 CI -- **hooks**: remove lint-staged in git hook. close #724  -  by @Azir-11 in https://github.com/soybeanjs/soybean-admin/issues/743 and https://github.com/soybeanjs/soybean-admin/issues/724 [(c3abc)](https://github.com/soybeanjs/soybean-admin/commit/c3abc3df) +- **hooks**: remove lint-staged in git hook. close #724  -  by @Azir-11 in https://github.com/soybeanjs/soybean-admin/issues/743 and https://github.com/soybeanjs/soybean-admin/issues/724 [(c3abc)](https://github.com/soybeanjs/soybean-admin/commit/c3abc3df) ###    ❤️ Contributors @@ -551,7 +550,7 @@ ###    📖 Documentation -- **projects**: ✏️ add element-plus version link  -  by **一寸灰** in https://github.com/honghuangdc/soybean-admin/issues/679 [(5c6ab)](https://github.com/honghuangdc/soybean-admin/commit/5c6ab0b) +- **projects**: ✏️ add element-plus version link  -  by **一寸灰** in https://github.com/honghuangdc/soybean-admin/issues/679 [(5c6ab)](https://github.com/honghuangdc/soybean-admin/commit/5c6ab0b) ###    🏡 Chore @@ -593,7 +592,6 @@ ###    ❤️ Contributors - [Soybean](mailto:soybeanjs@outlook.com), [青菜白玉汤](mailto:79054161+Azir-11@users.noreply.github.com) ## [v1.3.8](https://github.com/soybeanjs/soybean-admin/compare/v1.3.7...v1.3.8) (2024-10-25) @@ -1640,7 +1638,7 @@ - Optimize internationalized menu search code  -  by **燕博文** [(8c1ef)](https://github.com/soybeanjs/soybean-admin/commit/8c1ef4b) - Optimize menu search code  -  by **燕博文** [(296a2)](https://github.com/soybeanjs/soybean-admin/commit/296a2d2) - perf count-to  -  by @honghuangdc [(b2c61)](https://github.com/soybeanjs/soybean-admin/commit/b2c61f0) - - components name is converted to uppercase  -  by **燕博文** [(04aa1)](https://github.com/soybeanjs/soybean-admin/commit/04aa10b) + - components name is converted to uppercase  -  by **燕博文** [(04aa1)](https://github.com/soybeanjs/soybean-admin/commit/04aa10b) - perf global-search  -  by @honghuangdc [(72745)](https://github.com/soybeanjs/soybean-admin/commit/7274522) - **projects**: - perf code  -  by @honghuangdc [(8081e)](https://github.com/soybeanjs/soybean-admin/commit/8081e19) @@ -1917,7 +1915,7 @@ - Optimize internationalized menu search code  -  by **燕博文** [(8c1ef)](https://github.com/soybeanjs/soybean-admin/commit/8c1ef4b) - Optimize menu search code  -  by **燕博文** [(296a2)](https://github.com/soybeanjs/soybean-admin/commit/296a2d2) - perf count-to  -  by @honghuangdc [(b2c61)](https://github.com/soybeanjs/soybean-admin/commit/b2c61f0) - - components name is converted to uppercase  -  by **燕博文** [(04aa1)](https://github.com/soybeanjs/soybean-admin/commit/04aa10b) + - components name is converted to uppercase  -  by **燕博文** [(04aa1)](https://github.com/soybeanjs/soybean-admin/commit/04aa10b) - perf global-search  -  by @honghuangdc [(72745)](https://github.com/soybeanjs/soybean-admin/commit/7274522) - **projects**: - perf code  -  by @honghuangdc [(8081e)](https://github.com/soybeanjs/soybean-admin/commit/8081e19) @@ -3312,6 +3310,3 @@ ###    ❤️ Contributors [![honghuangdc](https://github.com/honghuangdc.png?size=48)](https://github.com/honghuangdc)  [![soybeanjs](https://github.com/soybeanjs.png?size=48)](https://github.com/soybeanjs)   - - - diff --git a/CHANGELOG.zh_CN.md b/CHANGELOG.zh_CN.md index 79587cd7..ec87c122 100644 --- a/CHANGELOG.zh_CN.md +++ b/CHANGELOG.zh_CN.md @@ -143,7 +143,6 @@ [![honghuangdc](https://github.com/honghuangdc.png?size=48)](https://github.com/honghuangdc)  [![Azir-11](https://github.com/Azir-11.png?size=48)](https://github.com/Azir-11)   [Azir](mailto:2075125282@qq.com),  - ## [v1.3.0](https://github.com/soybeanjs/soybean-admin/compare/v1.2.8...v1.3.0) (2024-07-22) ###    🚨 破坏性变更 @@ -182,7 +181,6 @@ [![honghuangdc](https://github.com/honghuangdc.png?size=48)](https://github.com/honghuangdc)  [![mmdapl](https://github.com/mmdapl.png?size=48)](https://github.com/mmdapl)  [![Azir-11](https://github.com/Azir-11.png?size=48)](https://github.com/Azir-11)   - ## [v1.2.8](https://github.com/soybeanjs/soybean-admin/compare/v1.2.7...v1.2.8) (2024-07-20) ###    🐞 修复 @@ -210,7 +208,6 @@ [![honghuangdc](https://github.com/honghuangdc.png?size=48)](https://github.com/honghuangdc)   [dodu2014](mailto:dodu@live.cn) - ## [v1.2.7](https://github.com/honghuangdc/soybean-admin/compare/v1.2.6...v1.2.7) (2024-07-12) ###    🛠 优化 @@ -294,7 +291,6 @@ [![soybeanjs](https://github.com/soybeanjs.png?size=48)](https://github.com/soybeanjs)  [![Azir-11](https://github.com/Azir-11.png?size=48)](https://github.com/Azir-11)   [CHENZL](mailto:zlong5568863@qq.com) - ## [v1.2.4](https://github.com/soybeanjs/soybean-admin/compare/v1.2.3...v1.2.4) (2024-06-14) ###    🛠 优化 @@ -372,7 +368,6 @@ [![soybeanjs](https://github.com/soybeanjs.png?size=48)](https://github.com/soybeanjs)   - ## [v1.2.0](https://github.com/soybeanjs/soybean-admin/compare/v1.1.5...v1.2.0) (2024-06-06) ###    🚀 功能 @@ -593,7 +588,6 @@ [![honghuangdc](https://github.com/honghuangdc.png?size=48)](https://github.com/honghuangdc)   [paynezhuang](mailto:paynezhuang@gmail.com) - ## [v1.1.0-beta.1](https://github.com/soybeanjs/soybean-admin/compare/v1.0.9...v1.1.0-beta.1) (2024-05-07) ###    🚀 功能 diff --git a/README.en_US.md b/README.en_US.md index 7758786e..e06a8c4a 100644 --- a/README.en_US.md +++ b/README.en_US.md @@ -27,7 +27,6 @@ [`SoybeanAdmin`](https://github.com/soybeanjs/soybean-admin) is a clean, elegant, beautiful and powerful admin template, based on the latest front-end technology stack, including Vue3, Vite7, TypeScript, Pinia and UnoCSS. It has built-in rich theme configuration and components, strict code specifications, and an automated file routing system. In addition, it also uses the online mock data solution based on ApiFox. `SoybeanAdmin` provides you with a one-stop admin solution, no additional configuration, and out of the box. It is also a best practice for learning cutting-edge technologies quickly. - ## Features - **Cutting-edge technology application**: using the latest popular technology stack such as Vue3, Vite7, TypeScript, Pinia and UnoCSS. @@ -42,7 +41,6 @@ - **Command line tool**: built-in efficient command line tool, git commit, delete file, release, etc. - **Mobile adaptation**: perfectly support mobile terminal to realize adaptive layout. - ## Version - **NaiveUI Version:** @@ -69,7 +67,6 @@ - [Gitee Repository](https://gitee.com/honghuangdc/soybean-admin/tree/legacy) - [Gitcode Repository](https://gitcode.com/soybeanjs/soybean-admin/tree/legacy) - ## Documentation - [Link](https://docs.soybeanjs.cn) @@ -89,7 +86,6 @@ ![](https://soybeanjs-1300612522.cos.ap-guangzhou.myqcloud.com/uPic/soybean-admin-v1-10.png) ![](https://soybeanjs-1300612522.cos.ap-guangzhou.myqcloud.com/uPic/soybean-admin-v1-mobile.png) - ## Usage **Environment Preparation** @@ -116,6 +112,7 @@ git clone https://gitcode.com/soybeanjs/soybean-admin.git ```bash pnpm i ``` + > Since this project uses the pnpm monorepo management method, please do not use npm or yarn to install dependencies. **Start Project** @@ -150,7 +147,6 @@ Refer to the [Code Synchronization](https://docs.soybeanjs.cn/guide/sync) docume More ecosystem please refer to [Ecosystem](https://docs.soybeanjs.cn/awesome) document. - ## How to Contribute We warmly welcome and appreciate all forms of contributions. If you have any ideas or suggestions, please feel free to share them by submitting [pull requests](https://github.com/soybeanjs/soybean-admin/pulls) or creating GitHub [issue](https://github.com/soybeanjs/soybean-admin/issues/new). @@ -164,8 +160,8 @@ This project has built-in `commit` command, you can execute `pnpm commit` to gen It is recommended to use the latest version of Chrome in development for a better experience. | [IE](http://godban.github.io/browsers-support-badges/) | [ Edge](http://godban.github.io/browsers-support-badges/) | [Firefox](http://godban.github.io/browsers-support-badges/) | [Chrome](http://godban.github.io/browsers-support-badges/) | [Safari](http://godban.github.io/browsers-support-badges/) | -| --- | --- | --- | --- | --- | -| not support | last 2 versions | last 2 versions | last 2 versions | last 2 versions | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| not support | last 2 versions | last 2 versions | last 2 versions | last 2 versions | ## OpenSource Author diff --git a/README.md b/README.md index 5a3efcbe..f4707d7c 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,6 @@ - **命令行工具**:内置高效的命令行工具,git提交、删除文件、发布等。 - **移动端适配**:完美支持移动端,实现自适应布局。 - ## 版本 - **NaiveUI 版本:** @@ -65,13 +64,11 @@ - [Gitee 仓库](https://gitee.com/honghuangdc/soybean-admin/tree/legacy) - [Gitcode 仓库](https://gitcode.com/soybeanjs/soybean-admin/tree/legacy) - ## 文档 - [地址](https://docs.soybeanjs.cn) - [旧版文档](https://legacy-docs.soybeanjs.cn) - ## 合作事项 我们非常感谢大家对 [`SoybeanAdmin`](https://github.com/soybeanjs/soybean-admin) 的支持!为了进一步回馈社区,并助力企业和开发者实现个性化需求,我们现提供多种合作服务,期待与您携手共赢。 @@ -96,11 +93,10 @@ - **Email**: [soybeanjs@outlook.com](mailto:soybeanjs@outlook.com) - **GitHub Issues**: 欢迎通过 [GitHub Issues](https://github.com/soybeanjs/soybean-admin/issues/new) 联系我们,进行初步的合作洽谈。 -- **商务合作微信**: honghuangdc +- **商务合作微信**: honghuangdc 期待与您开展深入合作,共同推动 SoybeanAdmin 项目及其在更多领域的成功应用! - ## 示例图片 ![](https://soybeanjs-1300612522.cos.ap-guangzhou.myqcloud.com/uPic/soybean-admin-v1-01.png) @@ -115,7 +111,6 @@ ![](https://soybeanjs-1300612522.cos.ap-guangzhou.myqcloud.com/uPic/soybean-admin-v1-10.png) ![](https://soybeanjs-1300612522.cos.ap-guangzhou.myqcloud.com/uPic/soybean-admin-v1-mobile.png) - ## 使用 **环境准备** @@ -142,6 +137,7 @@ git clone https://gitcode.com/soybeanjs/soybean-admin.git ```bash pnpm i ``` + > 由于本项目采用了 pnpm monorepo 的管理方式,因此请不要使用 npm 或 yarn 来安装依赖。 **启动项目** @@ -176,29 +172,26 @@ pnpm build 更多周边生态请翻阅 [周边生态](https://docs.soybeanjs.cn/zh/awesome) 文档。 - ## 如何贡献 我们热烈欢迎并感谢所有形式的贡献。如果您有任何想法或建议,欢迎通过提交 [pull requests](https://github.com/soybeanjs/soybean-admin/pulls) 或创建 GitHub [issue](https://github.com/soybeanjs/soybean-admin/issues/new) 来分享。 ## Git 提交规范 -本项目已内置 `commit` 命令,您可以通过执行 `pnpm commit` 来生成符合 [Conventional Commits]([conventionalcommits](https://www.conventionalcommits.org/)) 规范的提交信息。在提交PR时,请务必使用 `commit` 命令来创建提交信息,以确保信息的规范性。 - +本项目已内置 `commit` 命令,您可以通过执行 `pnpm commit` 来生成符合 [Conventional Commits](<[conventionalcommits](https://www.conventionalcommits.org/)>) 规范的提交信息。在提交PR时,请务必使用 `commit` 命令来创建提交信息,以确保信息的规范性。 ## 浏览器支持 推荐使用最新版的 Chrome 浏览器进行开发,以获得更好的体验。 | [IE](http://godban.github.io/browsers-support-badges/) | [ Edge](http://godban.github.io/browsers-support-badges/) | [Firefox](http://godban.github.io/browsers-support-badges/) | [Chrome](http://godban.github.io/browsers-support-badges/) | [Safari](http://godban.github.io/browsers-support-badges/) | -| --- | --- | --- | --- | --- | -| not support | last 2 versions | last 2 versions | last 2 versions | last 2 versions | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| not support | last 2 versions | last 2 versions | last 2 versions | last 2 versions | ## 开源作者 [Soybean](https://github.com/honghuangdc) - ## 贡献者 感谢以下贡献者的贡献。如果您想为本项目做出贡献,请参考 [如何贡献](#如何贡献)。 diff --git a/build/plugins/unocss.ts b/build/plugins/unocss.ts index 06b41d37..8470b66f 100644 --- a/build/plugins/unocss.ts +++ b/build/plugins/unocss.ts @@ -1,7 +1,7 @@ import process from 'node:process'; import path from 'node:path'; import unocss from '@unocss/vite'; -import presetIcons from '@unocss/preset-icons'; +import { presetIcons } from '@unocss/preset-icons'; import { FileSystemIconLoader } from '@iconify/utils/lib/loader/node-loaders'; export function setupUnocss(viteEnv: Env.ImportMeta) { diff --git a/eslint.config.js b/eslint.config.js index b6f1abae..c47fe5af 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,3 +1,12 @@ import { defineConfig } from '@soybeanjs/eslint-config-vue'; -export default defineConfig(); +export default defineConfig({ + 'vue/component-name-in-template-casing': [ + 'warn', + 'PascalCase', + { + registeredComponentsOnly: false, + ignores: ['/^icon-/'] + } + ] +}); diff --git a/package.json b/package.json index ceb006b2..d20d47c4 100644 --- a/package.json +++ b/package.json @@ -1,35 +1,31 @@ { "name": "soybean-admin", - "type": "module", "version": "2.0.2", "description": "A fresh and elegant admin template, based on Vue3、Vite7、TypeScript、NaiveUI and UnoCSS. 一个基于Vue3、Vite7、TypeScript、NaiveUI and UnoCSS的清新优雅的中后台模版。", + "keywords": [ + "TypeScript", + "UnoCSS", + "Vite7", + "Vue3 admin ", + "ant-design-vue v4", + "naive-ui", + "naive-ui-admin", + "vue-admin-template" + ], + "homepage": "https://github.com/soybeanjs/soybean-admin", + "bugs": { + "url": "https://github.com/soybeanjs/soybean-admin/issues" + }, + "license": "MIT", "author": { "name": "Soybean", "email": "soybeanjs@outlook.com", "url": "https://github.com/soybeanjs" }, - "license": "MIT", - "homepage": "https://github.com/soybeanjs/soybean-admin", "repository": { "url": "https://github.com/soybeanjs/soybean-admin.git" }, - "bugs": { - "url": "https://github.com/soybeanjs/soybean-admin/issues" - }, - "keywords": [ - "Vue3 admin ", - "vue-admin-template", - "Vite7", - "TypeScript", - "naive-ui", - "naive-ui-admin", - "ant-design-vue v4", - "UnoCSS" - ], - "engines": { - "node": ">=20.19.0", - "pnpm": ">=10.5.0" - }, + "type": "module", "scripts": { "build": "vite build --mode prod", "build:test": "vite build --mode test", @@ -38,8 +34,8 @@ "commit:zh": "sa git-commit -l=zh-cn", "dev": "vite --mode test", "dev:prod": "vite --mode prod", - "gen-route": "sa gen-route", "fmt": "oxfmt", + "gen-route": "sa gen-route", "lint": "oxlint --fix && eslint --fix .", "prepare": "simple-git-hooks", "preview": "vite preview", @@ -107,5 +103,9 @@ "commit-msg": "pnpm sa git-commit-verify", "pre-commit": "pnpm typecheck && pnpm lint && pnpm fmt && git diff --exit-code" }, + "engines": { + "node": ">=20.19.0", + "pnpm": ">=10.5.0" + }, "website": "https://admin.soybeanjs.cn" } diff --git a/packages/alova/package.json b/packages/alova/package.json index b0172d73..fb19625e 100644 --- a/packages/alova/package.json +++ b/packages/alova/package.json @@ -1,17 +1,19 @@ { "name": "@sa/alova", "version": "2.0.2", + "typesVersions": { + "*": { + "*": [ + "./src/*" + ] + } + }, "exports": { ".": "./src/index.ts", "./fetch": "./src/fetch.ts", "./client": "./src/client.ts", "./mock": "./src/mock.ts" }, - "typesVersions": { - "*": { - "*": ["./src/*"] - } - }, "dependencies": { "@alova/mock": "2.0.19", "@sa/utils": "workspace:*", diff --git a/packages/axios/package.json b/packages/axios/package.json index 6880cd9a..dd71ac88 100644 --- a/packages/axios/package.json +++ b/packages/axios/package.json @@ -1,14 +1,16 @@ { "name": "@sa/axios", "version": "2.0.2", - "exports": { - ".": "./src/index.ts" - }, "typesVersions": { "*": { - "*": ["./src/*"] + "*": [ + "./src/*" + ] } }, + "exports": { + ".": "./src/index.ts" + }, "dependencies": { "@sa/utils": "workspace:*", "axios": "1.13.6", diff --git a/packages/color/package.json b/packages/color/package.json index 2668a42a..815eaa7e 100644 --- a/packages/color/package.json +++ b/packages/color/package.json @@ -1,14 +1,16 @@ { "name": "@sa/color", "version": "2.0.2", - "exports": { - ".": "./src/index.ts" - }, "typesVersions": { "*": { - "*": ["./src/*"] + "*": [ + "./src/*" + ] } }, + "exports": { + ".": "./src/index.ts" + }, "dependencies": { "@sa/utils": "workspace:*", "colord": "2.9.3" diff --git a/packages/hooks/package.json b/packages/hooks/package.json index 301ffdcf..f7d309fd 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -1,14 +1,16 @@ { "name": "@sa/hooks", "version": "2.0.2", - "exports": { - ".": "./src/index.ts" - }, "typesVersions": { "*": { - "*": ["./src/*"] + "*": [ + "./src/*" + ] } }, + "exports": { + ".": "./src/index.ts" + }, "dependencies": { "@sa/axios": "workspace:*", "@sa/utils": "workspace:*" diff --git a/packages/materials/package.json b/packages/materials/package.json index 4f702022..69d37867 100644 --- a/packages/materials/package.json +++ b/packages/materials/package.json @@ -1,14 +1,16 @@ { "name": "@sa/materials", "version": "2.0.2", - "exports": { - ".": "./src/index.ts" - }, "typesVersions": { "*": { - "*": ["./src/*"] + "*": [ + "./src/*" + ] } }, + "exports": { + ".": "./src/index.ts" + }, "dependencies": { "@sa/utils": "workspace:*", "simplebar-vue": "2.4.2" diff --git a/packages/scripts/package.json b/packages/scripts/package.json index f677e5e6..8f159241 100644 --- a/packages/scripts/package.json +++ b/packages/scripts/package.json @@ -4,14 +4,16 @@ "bin": { "sa": "./bin.ts" }, - "exports": { - ".": "./src/index.ts" - }, "typesVersions": { "*": { - "*": ["./src/*"] + "*": [ + "./src/*" + ] } }, + "exports": { + ".": "./src/index.ts" + }, "devDependencies": { "@soybeanjs/changelog": "0.4.3", "bumpp": "10.4.1", diff --git a/packages/scripts/src/index.ts b/packages/scripts/src/index.ts index 34367d79..5aaf9f3e 100755 --- a/packages/scripts/src/index.ts +++ b/packages/scripts/src/index.ts @@ -1,4 +1,4 @@ -import cac from 'cac'; +import { cac } from 'cac'; import { blue, lightGreen } from 'kolorist'; import { version } from '../package.json'; import { cleanup, genChangelog, generateRoute, gitCommit, gitCommitVerify, release, updatePkg } from './commands'; diff --git a/packages/uno-preset/package.json b/packages/uno-preset/package.json index 5412cb21..bb299326 100644 --- a/packages/uno-preset/package.json +++ b/packages/uno-preset/package.json @@ -1,12 +1,14 @@ { "name": "@sa/uno-preset", "version": "2.0.2", - "exports": { - ".": "./src/index.ts" - }, "typesVersions": { "*": { - "*": ["./src/*"] + "*": [ + "./src/*" + ] } + }, + "exports": { + ".": "./src/index.ts" } } diff --git a/packages/utils/package.json b/packages/utils/package.json index 7074bcae..289dd71d 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,14 +1,16 @@ { "name": "@sa/utils", "version": "2.0.2", - "exports": { - ".": "./src/index.ts" - }, "typesVersions": { "*": { - "*": ["./src/*"] + "*": [ + "./src/*" + ] } }, + "exports": { + ".": "./src/index.ts" + }, "dependencies": { "colord": "2.9.3", "crypto-js": "4.2.0", diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index dee51e92..18ec407e 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,2 +1,2 @@ packages: - - "packages/*" + - 'packages/*' diff --git a/uno.config.ts b/uno.config.ts index 0259efda..eb1314b2 100644 --- a/uno.config.ts +++ b/uno.config.ts @@ -1,7 +1,7 @@ import { defineConfig } from '@unocss/vite'; import transformerDirectives from '@unocss/transformer-directives'; import transformerVariantGroup from '@unocss/transformer-variant-group'; -import presetWind3 from '@unocss/preset-wind3'; +import { presetWind3 } from '@unocss/preset-wind3'; import type { Theme } from '@unocss/preset-uno'; import { presetSoybeanAdmin } from '@sa/uno-preset'; import { themeVars } from './src/theme/vars';