toku-ui 3.0.0 → 3.1.0

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,7 +1,7 @@
1
1
  {
2
2
  "name": "toku-ui",
3
3
  "type": "module",
4
- "version": "3.0.0",
4
+ "version": "3.1.0",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {
@@ -23,6 +23,7 @@
23
23
  "dev": "vite",
24
24
  "build": "vite build && vue-tsc --project tsconfig.build.json --emitDeclarationOnly --declaration",
25
25
  "preview": "vite preview",
26
+ "prepare": "simple-git-hooks",
26
27
  "lint": "pnpm lint:eslint && pnpm lint:stylelint",
27
28
  "lint:fix": "pnpm lint:eslint:fix && pnpm lint:stylelint:fix",
28
29
  "lint:eslint": "eslint ./src",
@@ -30,8 +31,12 @@
30
31
  "lint:stylelint": "stylelint 'src/**/*.{vue,css,scss}'",
31
32
  "lint:stylelint:fix": "stylelint 'src/**/*.{vue,css,scss}' --fix",
32
33
  "typecheck": "vue-tsc --noEmit",
33
- "test": "vitest run",
34
- "test:watch": "vitest",
34
+ "test": "vitest run --project unit",
35
+ "test:coverage": "vitest run --project unit --coverage",
36
+ "test:stories": "vitest run --project stories",
37
+ "test:stories:watch": "vitest --project stories",
38
+ "test:stories:ui": "vitest --project stories --ui",
39
+ "test:watch": "vitest --project unit",
35
40
  "storybook": "storybook dev -p 6006",
36
41
  "build-storybook": "storybook build",
37
42
  "chromatic": "npx chromatic",
@@ -54,6 +59,13 @@
54
59
  "gzip": true
55
60
  }
56
61
  ],
62
+ "simple-git-hooks": {
63
+ "pre-commit": "pnpm lint-staged"
64
+ },
65
+ "lint-staged": {
66
+ "*.{ts,tsx,vue}": "eslint --fix",
67
+ "*.{vue,css,scss}": "stylelint --fix"
68
+ },
57
69
  "peerDependencies": {
58
70
  "@emotion/css": ">=11.0.0",
59
71
  "@iconify/vue": "^4.1.1",
@@ -65,27 +77,35 @@
65
77
  "@emotion/css": "11.11.2",
66
78
  "@iconify/vue": "4.1.1",
67
79
  "@size-limit/preset-small-lib": "12.1.0",
68
- "@storybook/addon-docs": "10.4.0",
69
- "@storybook/addon-links": "10.4.0",
70
- "@storybook/vue3-vite": "10.4.0",
80
+ "@storybook/addon-docs": "10.4.1",
81
+ "@storybook/addon-links": "10.4.1",
82
+ "@storybook/addon-vitest": "10.4.1",
83
+ "@storybook/vue3-vite": "10.4.1",
71
84
  "@testing-library/jest-dom": "6.9.1",
72
85
  "@testing-library/user-event": "14.5.2",
73
86
  "@testing-library/vue": "8.0.2",
74
87
  "@vitejs/plugin-vue": "6.0.7",
75
88
  "@vitejs/plugin-vue-jsx": "5.1.5",
89
+ "@vitest/browser": "4.1.6",
90
+ "@vitest/browser-playwright": "4.1.6",
91
+ "@vitest/coverage-v8": "4.1.6",
92
+ "@vitest/ui": "4.1.6",
76
93
  "@vue/test-utils": "2.4.4",
77
94
  "chromatic": "17.0.0",
78
95
  "es-toolkit": "1.46.1",
79
96
  "eslint": "9.13.0",
80
- "jsdom": "21.1.2",
97
+ "happy-dom": "20.9.0",
81
98
  "knip": "6.14.1",
99
+ "lint-staged": "17.0.5",
100
+ "playwright": "1.60.0",
82
101
  "polished": "4.3.1",
83
102
  "postcss-html": "1.8.1",
84
103
  "prettier": "3.8.3",
85
104
  "publint": "0.3.21",
86
105
  "sass": "1.71.1",
106
+ "simple-git-hooks": "2.13.1",
87
107
  "size-limit": "12.1.0",
88
- "storybook": "10.4.0",
108
+ "storybook": "10.4.1",
89
109
  "storybook-addon-pseudo-states": "10.4.0",
90
110
  "stylelint": "17.11.1",
91
111
  "stylelint-config-recommended-vue": "1.6.1",