优化 package.json 结构

This commit is contained in:
就眠儀式 2021-12-24 10:54:19 +08:00
parent 47cc7a54c8
commit 0cdbb4e188
2 changed files with 12 additions and 16 deletions

View File

@ -1,10 +1,19 @@
{ {
"name": "@layui/layui-vue", "name": "@layui/layui-vue",
"version": "0.2.9", "version": "0.2.9",
"author": "sleeprite",
"license": "MIT",
"description": "a component library for Vue 3 base on layui-vue", "description": "a component library for Vue 3 base on layui-vue",
"homepage": "https://gitee.com/layui-vue/layui-vue/blob/master/README.md", "homepage": "https://gitee.com/layui-vue/layui-vue/blob/master/README.md",
"module": "lib/layui-vue.es.js", "module": "lib/layui-vue.es.js",
"main": "lib/layui-vue.umd.js", "main": "lib/layui-vue.umd.js",
"types": "types/index.d.ts",
"style": "lib/index.css",
"keywords": [
"layui-vue",
"layui",
"vue"
],
"exports": { "exports": {
".": { ".": {
"import": "./lib/layui-vue.es.js", "import": "./lib/layui-vue.es.js",
@ -12,36 +21,23 @@
}, },
"./lib/": "./lib/" "./lib/": "./lib/"
}, },
"types": "types/index.d.ts",
"style": "lib/index.css",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "vite build --emptyOutDir && npm run build:types", "build": "vite build --emptyOutDir && npm run build:types",
"build:types": "rimraf types && tsc -d", "build:types": "rimraf types && tsc -d",
"build:example": "vite build example" "build:example": "vite build example"
}, },
"keywords": [
"layui-vue",
"layui",
"vue"
],
"author": "就眠儀式",
"license": "MIT",
"peerDependencies": { "peerDependencies": {
"@layui/hooks-vue": "^0.1.6",
"@layui/icons-vue": "^1.0.1",
"@layui/layer-vue": "^1.2.2",
"vue": "^3.2.26", "vue": "^3.2.26",
"vue-router": "^4.0.12" "vue-router": "^4.0.12"
}, },
"dependencies": { "dependencies": {
"vue": "^3.2.26",
"@layui/hooks-vue": "^0.1.6", "@layui/hooks-vue": "^0.1.6",
"@layui/icons-vue": "^1.0.1", "@layui/icons-vue": "^1.0.1",
"@layui/layer-vue": "^1.2.2", "@layui/layer-vue": "^1.2.2",
"async-validator": "^4.0.7", "async-validator": "^4.0.7",
"evtd": "^0.2.3", "evtd": "^0.2.3"
"vue": "^3.2.26",
"vue-router": "^4.0.12"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.15.8", "@babel/core": "^7.15.8",