lew-ui 1.21.2 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lew-ui",
3
- "version": "1.21.2",
3
+ "version": "2.0.2",
4
4
  "description": "A Component Library for Vue3.js.",
5
5
  "keywords": [
6
6
  "vue3",
@@ -12,66 +12,89 @@
12
12
  "dev": "vite",
13
13
  "build:noemit": "vite build --mode demo",
14
14
  "build": "vite build --mode demo",
15
- "build:package": "vite build --mode package",
16
- "lint": "eslint --ext .js,.vue --ignore-path .gitignore --fix src",
17
- "format": "prettier --write './*.{js,ts,json,vue,css,scss}' './*/*.{js,ts,json,vue,css,scss}' './*/*/*.{js,ts,json,vue,css,scss}' './*/*/*/*.{js,ts,json,vue,css,scss}' './*/*/*/*/*.{js,ts,json,vue,css,scss}'",
15
+ "build:lib": "vite build --mode lib",
16
+ "lint:comment": "使用 ESLint 检查并自动修复 src 目录下所有扩展名为 .js .vue 的文件",
17
+ "eslint": "eslint --ext .js,.vue --ignore-path .gitignore --fix .",
18
+ "prettier:comment": "自动格式化当前目录下的所有文件",
19
+ "prettier": "prettier . --write",
18
20
  "test": "vitest",
19
21
  "test:coverage": "vitest --coverage"
20
22
  },
21
23
  "files": [
22
- "dist"
24
+ "dist/components/**/*.ts",
25
+ "dist/directives/**/*.ts",
26
+ "dist/hooks/**/*.ts",
27
+ "dist/utils/**/*.ts",
28
+ "dist/index.mjs",
29
+ "dist/index.umd.js",
30
+ "dist/style.css",
31
+ "dist/index.d.ts",
32
+ "package.json",
33
+ "README.md",
34
+ "LICENSE"
23
35
  ],
24
- "module": "./dist/lew.es.ts",
25
- "main": "./dist/lew.umd.ts",
36
+ "module": "./dist/index.mjs",
37
+ "main": "./dist/index.umd.js",
38
+ "types": "./dist/index.d.ts",
39
+ "typings": "./dist/index.d.ts",
26
40
  "exports": {
27
41
  ".": {
28
- "import": "./dist/lew.es.ts",
29
- "require": "./dist/lew.umd.ts"
42
+ "import": "./dist/index.mjs",
43
+ "require": "./dist/index.umd.js",
44
+ "types": "./dist/index.d.ts"
30
45
  },
31
- "./dist/style.css": {
32
- "import": "./dist/style.css",
33
- "require": "./dist/style.css"
34
- }
46
+ "./style": "./dist/style.css"
35
47
  },
36
48
  "dependencies": {
37
49
  "@vueuse/components": "^9.13.0",
38
50
  "@vueuse/core": "^9.1.1",
39
51
  "dayjs": "^1.11.7",
40
- "eslint-plugin-prettier": "^4.2.1",
41
52
  "feather-icons": "^4.29.0",
42
53
  "lodash": "^4.17.21",
43
- "moment": "^2.29.4",
54
+ "terser": "^5.28.1",
44
55
  "tippy.js": "^6.3.7",
45
- "vee-validate": "^4.8.6",
46
- "vue": "^3.2.41",
56
+ "vee-validate": "^4.5.8",
57
+ "vite-plugin-dts": "^1.4.1",
58
+ "vue": "^3.2.37",
47
59
  "vue-feather": "^2.0.0",
48
60
  "vue-router": "^4.0.13",
49
- "yup": "^1.1.1"
61
+ "yup": "^1.2.0"
50
62
  },
51
63
  "devDependencies": {
52
64
  "@types/lodash": "^4.14.182",
53
- "@types/node": "^17.0.35",
54
- "@typescript-eslint/eslint-plugin": "^5.7.0",
55
- "@typescript-eslint/parser": "^5.40.0",
56
- "@vitejs/plugin-vue": "^2.0.0",
57
65
  "@vitejs/plugin-vue-jsx": "^1.3.10",
58
66
  "@vue/test-utils": "^2.0.2",
59
67
  "c8": "^7.12.0",
60
- "eslint": "^8.4.1",
61
68
  "eslint-config-airbnb-base": "^15.0.0",
62
69
  "eslint-config-prettier": "^8.3.0",
63
70
  "eslint-plugin-import": "^2.26.0",
64
- "eslint-plugin-prettier": "^4.0.0",
65
- "eslint-plugin-vue": "^8.2.0",
66
71
  "jsdom": "^20.0.0",
67
- "prettier": "^2.5.1",
72
+ "lint-staged": "^13.2.2",
68
73
  "sass": "^1.52.1",
69
- "typescript": "^4.8.4",
70
- "unplugin-auto-import": "^0.11.2",
71
- "vite": "^2.9.9",
72
74
  "vite-plugin-compression": "^0.5.1",
73
75
  "vite-plugin-style-import": "^2.0.0",
74
76
  "vitest": "^0.21.1",
75
- "vue-tsc": "^0.29.8"
77
+ "@types/node": "^18.7.2",
78
+ "@typescript-eslint/eslint-plugin": "^5.40.1",
79
+ "@typescript-eslint/parser": "^5.40.1",
80
+ "@vitejs/plugin-vue": "^4.2.3",
81
+ "@vue/eslint-config-prettier": "^7.0.0",
82
+ "@vue/eslint-config-typescript": "^11.0.2",
83
+ "eslint": "^8.25.0",
84
+ "eslint-plugin-html": "^7.1.0",
85
+ "eslint-plugin-vue": "^9.6.0",
86
+ "prettier": "^2.7.1",
87
+ "typescript": "^4.6.4",
88
+ "unplugin-auto-import": "^0.15.3",
89
+ "vite": "^4.3.7",
90
+ "vue-tsc": "^0.38.4"
91
+ },
92
+ "config": {
93
+ "commitizen": {
94
+ "path": "node_modules/cz-customizable"
95
+ },
96
+ "cz-customizable": {
97
+ "config": ".cz-config.cjs"
98
+ }
76
99
  }
77
- }
100
+ }