@indielayer/ui 0.2.1 → 0.2.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 +3 -2
- package/src/nuxt.js +14 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indielayer/ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Indielayer UI Components with Tailwind CSS build for Vue 3",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "João Teixeira",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"import": "./lib/esm/index.js",
|
|
29
29
|
"require": "./lib/cjs/index.js"
|
|
30
30
|
},
|
|
31
|
+
"./nuxt": "./src/nuxt.js",
|
|
31
32
|
"./tailwind.preset": "./lib/tailwind.preset.js",
|
|
32
33
|
"./tailwind.preset.js": "./lib/tailwind.preset.js"
|
|
33
34
|
},
|
|
@@ -72,5 +73,5 @@
|
|
|
72
73
|
"publishConfig": {
|
|
73
74
|
"access": "public"
|
|
74
75
|
},
|
|
75
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "4d706626bbb60894f6cd7e9aaa72f4e918d4aa43"
|
|
76
77
|
}
|
package/src/nuxt.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { join } from 'pathe'
|
|
2
|
+
import { defineNuxtModule } from '@nuxt/kit'
|
|
3
|
+
|
|
4
|
+
export default defineNuxtModule({
|
|
5
|
+
hooks: {
|
|
6
|
+
'components:dirs'(dirs) {
|
|
7
|
+
// Add ./components dir to the list
|
|
8
|
+
dirs.push({
|
|
9
|
+
path: join(__dirname, 'components'),
|
|
10
|
+
prefix: 'X',
|
|
11
|
+
})
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
})
|