mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 13:28:38 +08:00
refactor: 给components和copyright子包增加unbuild
This commit is contained in:
+2
-1
@@ -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:"
|
||||
},
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
import { defineBuildConfig } from 'unbuild'
|
||||
|
||||
export default defineBuildConfig({
|
||||
entries: ['./resolver'],
|
||||
declaration: false,
|
||||
clean: true,
|
||||
})
|
||||
@@ -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:",
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
},
|
||||
"include": [
|
||||
"auto-imports.d.ts",
|
||||
"build.config.ts",
|
||||
"global.d.ts",
|
||||
"index.ts",
|
||||
"resolver.ts",
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
import { defineBuildConfig } from 'unbuild'
|
||||
|
||||
export default defineBuildConfig({
|
||||
entries: ['./index'],
|
||||
declaration: false,
|
||||
clean: true,
|
||||
})
|
||||
@@ -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:"
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
"types": ["node"]
|
||||
},
|
||||
"include": [
|
||||
"index.ts"
|
||||
"index.ts",
|
||||
"build.config.ts"
|
||||
]
|
||||
}
|
||||
|
||||
Generated
+1220
-8
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user