@regle/nuxt 1.6.1 → 1.6.3
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 -2
- package/package.json +4 -4
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -11,7 +11,8 @@ const module = defineNuxtModule({
|
|
|
11
11
|
const { resolve } = createResolver(import.meta.url);
|
|
12
12
|
if (options.setupFile) {
|
|
13
13
|
try {
|
|
14
|
-
const
|
|
14
|
+
const setupFilePathOS = await resolvePath(options.setupFile);
|
|
15
|
+
const setupFilePath = path.posix.normalize(setupFilePathOS.replace(/\\/g, "/"));
|
|
15
16
|
if (setupFilePath) {
|
|
16
17
|
const dotNuxtFolder = resolve(`${nuxt.options.rootDir}/.nuxt`);
|
|
17
18
|
const relativePath = path.relative(dotNuxtFolder, setupFilePath);
|
|
@@ -51,7 +52,7 @@ export type RegleFieldStatus<
|
|
|
51
52
|
console.error(`[regle] Couldn't find your setup file at ${options.setupFile}`);
|
|
52
53
|
}
|
|
53
54
|
} catch (e) {
|
|
54
|
-
console.error(`[regle] Couldn't find your setup file at ${options.setupFile}
|
|
55
|
+
console.error(`[regle] Couldn't find your setup file at ${options.setupFile}`, e);
|
|
55
56
|
}
|
|
56
57
|
} else {
|
|
57
58
|
addImportsSources({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regle/nuxt",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.3",
|
|
4
4
|
"description": "Regle nuxt module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@nuxt/kit": "4.0.1",
|
|
24
24
|
"@nuxt/schema": "4.0.1",
|
|
25
|
-
"@regle/core": "1.6.
|
|
26
|
-
"@regle/rules": "1.6.
|
|
25
|
+
"@regle/core": "1.6.3",
|
|
26
|
+
"@regle/rules": "1.6.3"
|
|
27
27
|
},
|
|
28
28
|
"optionalDependencies": {
|
|
29
|
-
"@regle/schemas": "1.6.
|
|
29
|
+
"@regle/schemas": "1.6.3"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@nuxt/eslint-config": "1.7.0",
|