directix 1.5.0 → 1.6.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
@@ -2,7 +2,7 @@
2
2
  "name": "directix",
3
3
  "description": "A comprehensive, easy-to-use, and high-performance Vue custom directives library supporting both Vue 2 and Vue 3",
4
4
  "type": "module",
5
- "version": "1.5.0",
5
+ "version": "1.6.0",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.mjs",
8
8
  "unpkg": "dist/index.iife.min.js",
@@ -14,6 +14,11 @@
14
14
  "require": "./dist/index.cjs",
15
15
  "import": "./dist/index.mjs"
16
16
  },
17
+ "./nuxt": {
18
+ "types": "./dist/nuxt/index.d.ts",
19
+ "require": "./dist/nuxt/index.cjs",
20
+ "import": "./dist/nuxt/index.mjs"
21
+ },
17
22
  "./style.css": "./dist/style.css"
18
23
  },
19
24
  "files": [
@@ -21,12 +26,16 @@
21
26
  ],
22
27
  "devDependencies": {
23
28
  "@eslint-sets/eslint-config": "^6.3.1",
29
+ "@nuxt/kit": "^3.16.1",
30
+ "@nuxt/schema": "^3.16.1",
24
31
  "@types/node": "^22.19.17",
25
32
  "@vitejs/plugin-vue": "^5.2.4",
26
33
  "@vitest/coverage-v8": "^3.2.4",
27
34
  "@vue/test-utils": "^2.4.6",
35
+ "esbuild": "^0.28.0",
28
36
  "eslint": "^9.39.4",
29
37
  "jsdom": "^26.1.0",
38
+ "nuxt": "^4.4.2",
30
39
  "terser": "^5.46.1",
31
40
  "tsx": "^4.21.0",
32
41
  "typescript": "^5.9.3",
@@ -39,11 +48,19 @@
39
48
  "vue2": "npm:vue@^2.7.16"
40
49
  },
41
50
  "peerDependencies": {
51
+ "@nuxt/kit": ">=3.0.0",
52
+ "@nuxt/schema": ">=3.0.0",
42
53
  "@vue/composition-api": ">=1.0.0",
43
54
  "lottie-web": ">=5.0.0",
44
55
  "vue": "^2.0.0 || >=3.0.0"
45
56
  },
46
57
  "peerDependenciesMeta": {
58
+ "@nuxt/kit": {
59
+ "optional": true
60
+ },
61
+ "@nuxt/schema": {
62
+ "optional": true
63
+ },
47
64
  "@vue/composition-api": {
48
65
  "optional": true
49
66
  },
@@ -135,7 +152,7 @@
135
152
  "dev": "vite",
136
153
  "gen:version": "tsx scripts/version",
137
154
  "tag:version": "tsx scripts/tag",
138
- "build": "vite build && tsx scripts/minify",
155
+ "build": "vite build && tsx scripts/minify && tsx scripts/build-nuxt",
139
156
  "build:types": "vue-tsc --emitDeclarationOnly --outDir dist",
140
157
  "docs:dev": "vitepress dev docs",
141
158
  "docs:build": "vitepress build docs",