refactor: 给components和copyright子包增加unbuild

This commit is contained in:
Hooray
2026-04-02 23:13:52 +08:00
parent e09a4c67e4
commit ecf4040aac
9 changed files with 1254 additions and 12 deletions
+2 -1
View File
@@ -16,7 +16,7 @@
"lint:eslint": "eslint . --cache --fix",
"lint:stylelint": "stylelint \"{apps,packages}/**/*.{css,scss,vue}\" --cache --fix",
"preinstall": "npx only-allow pnpm",
"postinstall": "simple-git-hooks",
"postinstall": "pnpm -r run stub --if-present && simple-git-hooks",
"taze": "taze minor -wIr",
"commit": "git cz",
"release": "bumpp"
@@ -45,6 +45,7 @@
"taze": "catalog:",
"tsx": "catalog:",
"typescript": "catalog:",
"unbuild": "catalog:",
"unocss": "catalog:",
"unocss-preset-animations": "catalog:"
},
+7
View File
@@ -0,0 +1,7 @@
import { defineBuildConfig } from 'unbuild'
export default defineBuildConfig({
entries: ['./resolver'],
declaration: false,
clean: true,
})
+7 -1
View File
@@ -4,7 +4,13 @@
"version": "0.0.0",
"exports": {
".": "./index.ts",
"./resolver": "./resolver.ts"
"./resolver": {
"types": "./resolver.ts",
"import": "./dist/resolver.mjs"
}
},
"scripts": {
"stub": "pnpm unbuild --stub"
},
"peerDependencies": {
"@vueuse/components": "catalog:",
+1
View File
@@ -6,6 +6,7 @@
},
"include": [
"auto-imports.d.ts",
"build.config.ts",
"global.d.ts",
"index.ts",
"resolver.ts",
+7
View File
@@ -0,0 +1,7 @@
import { defineBuildConfig } from 'unbuild'
export default defineBuildConfig({
entries: ['./index'],
declaration: false,
clean: true,
})
+7 -1
View File
@@ -3,7 +3,13 @@
"type": "module",
"version": "0.0.0",
"exports": {
".": "./index.ts"
".": {
"types": "./index.ts",
"import": "./dist/index.mjs"
}
},
"scripts": {
"stub": "pnpm unbuild --stub"
},
"peerDependencies": {
"vite": "catalog:"
+2 -1
View File
@@ -4,6 +4,7 @@
"types": ["node"]
},
"include": [
"index.ts"
"index.ts",
"build.config.ts"
]
}
+1220 -8
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -95,6 +95,7 @@ catalog:
type-fest: ^5.5.0
typescript: ^6.0.2
ua-parser-js: ^2.0.9
unbuild: ^3.6.1
unocss: ^66.6.7
unocss-preset-animations: ^1.3.0
unplugin-auto-import: ^21.0.0