una-nuxt-module 2.1.14 → 2.1.15
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/dist/module.json +1 -1
- package/dist/module.mjs +3 -3
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -101,7 +101,7 @@ function getFile(filePath) {
|
|
|
101
101
|
function useComponentScanner() {
|
|
102
102
|
const { resolve } = createResolver(import.meta.url);
|
|
103
103
|
function scanComponentDirectories() {
|
|
104
|
-
const componentsDirectory = resolve("../runtime/components/ui");
|
|
104
|
+
const componentsDirectory = import.meta.dev ? resolve("../runtime/components/ui") : resolve("./runtime/components/ui");
|
|
105
105
|
if (!doesDirectoryExist(componentsDirectory)) {
|
|
106
106
|
console.warn(`UI components directory not found: ${componentsDirectory}`);
|
|
107
107
|
return [];
|
|
@@ -113,7 +113,7 @@ function useComponentScanner() {
|
|
|
113
113
|
return subdirectories;
|
|
114
114
|
}
|
|
115
115
|
function getFilesForComponent(component) {
|
|
116
|
-
const directory = resolve(`../runtime/components/ui/${component}`);
|
|
116
|
+
const directory = import.meta.dev ? resolve(`../runtime/components/ui/${component}`) : resolve(`./runtime/components/ui/${component}`);
|
|
117
117
|
if (!doesDirectoryExist(directory)) {
|
|
118
118
|
console.warn(`Component directory not found: ${directory}`);
|
|
119
119
|
return [];
|
|
@@ -197,7 +197,7 @@ function addTemplates() {
|
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
const name = "una-nuxt-module";
|
|
200
|
-
const version = "2.1.
|
|
200
|
+
const version = "2.1.15";
|
|
201
201
|
|
|
202
202
|
const module = defineNuxtModule({
|
|
203
203
|
meta: {
|