@regle/nuxt 1.6.2 → 1.7.0-beta.1
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.d.mts +2 -2
- package/dist/module.json +3 -3
- package/dist/module.mjs +3 -2
- package/package.json +16 -15
package/dist/module.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as nuxt_schema from 'nuxt/schema';
|
|
2
2
|
|
|
3
3
|
interface ModuleOptions {
|
|
4
4
|
/**
|
|
@@ -6,7 +6,7 @@ interface ModuleOptions {
|
|
|
6
6
|
*/
|
|
7
7
|
setupFile: string;
|
|
8
8
|
}
|
|
9
|
-
declare const _default:
|
|
9
|
+
declare const _default: nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
10
10
|
|
|
11
11
|
export { _default as default };
|
|
12
12
|
export type { ModuleOptions };
|
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.
|
|
3
|
+
"version": "1.7.0-beta.1",
|
|
4
4
|
"description": "Regle nuxt module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -20,31 +20,31 @@
|
|
|
20
20
|
"dist"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@nuxt/kit": "4.0.
|
|
24
|
-
"@nuxt/schema": "4.0.
|
|
25
|
-
"@regle/core": "1.
|
|
26
|
-
"@regle/rules": "1.
|
|
23
|
+
"@nuxt/kit": "4.0.3",
|
|
24
|
+
"@nuxt/schema": "4.0.3",
|
|
25
|
+
"@regle/core": "1.7.0-beta.1",
|
|
26
|
+
"@regle/rules": "1.7.0-beta.1"
|
|
27
27
|
},
|
|
28
28
|
"optionalDependencies": {
|
|
29
|
-
"@regle/schemas": "1.
|
|
29
|
+
"@regle/schemas": "1.7.0-beta.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@nuxt/eslint-config": "1.
|
|
33
|
-
"@nuxt/module-builder": "1.0.
|
|
32
|
+
"@nuxt/eslint-config": "1.8.0",
|
|
33
|
+
"@nuxt/module-builder": "1.0.2",
|
|
34
34
|
"@nuxt/test-utils": "3.19.2",
|
|
35
35
|
"@types/node": "22.16.5",
|
|
36
|
-
"eslint": "9.
|
|
36
|
+
"eslint": "9.33.0",
|
|
37
37
|
"eslint-config-prettier": "10.1.8",
|
|
38
|
-
"eslint-plugin-vue": "10.
|
|
39
|
-
"nuxt": "4.0.
|
|
38
|
+
"eslint-plugin-vue": "10.4.0",
|
|
39
|
+
"nuxt": "4.0.3",
|
|
40
40
|
"prettier": "3.6.2",
|
|
41
41
|
"type-fest": "4.41.0",
|
|
42
|
-
"typescript": "5.
|
|
43
|
-
"unbuild": "3.
|
|
42
|
+
"typescript": "5.9.2",
|
|
43
|
+
"unbuild": "3.6.0",
|
|
44
44
|
"vitest": "3.2.4",
|
|
45
|
-
"vue": "3.5.
|
|
45
|
+
"vue": "3.5.18",
|
|
46
46
|
"vue-eslint-parser": "10.2.0",
|
|
47
|
-
"vue-tsc": "3.0.
|
|
47
|
+
"vue-tsc": "3.0.5"
|
|
48
48
|
},
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
"build:sourcemaps": "pnpm run dev:prepare && nuxt-module-build build",
|
|
68
68
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && nuxi prepare test/fixtures",
|
|
69
69
|
"lint": "eslint .",
|
|
70
|
+
"lint:fix": "eslint . --fix",
|
|
70
71
|
"test": "pnpm exec playwright install && vitest run",
|
|
71
72
|
"test:watch": "vitest watch"
|
|
72
73
|
}
|