@nuxt/module-builder 0.8.2 → 0.8.4
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/chunks/build.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { createRegExp, anyOf } from 'magic-regexp';
|
|
|
9
9
|
import { consola } from 'consola';
|
|
10
10
|
import { resolvePath, findExports } from 'mlly';
|
|
11
11
|
import { defineCommand } from 'citty';
|
|
12
|
-
import { n as name, v as version } from '../shared/module-builder.
|
|
12
|
+
import { n as name, v as version } from '../shared/module-builder.617a9be8.mjs';
|
|
13
13
|
|
|
14
14
|
const build = defineCommand({
|
|
15
15
|
meta: {
|
|
@@ -168,7 +168,7 @@ async function writeTypes(distDir, isStub) {
|
|
|
168
168
|
const moduleImports = [];
|
|
169
169
|
const schemaImports = [];
|
|
170
170
|
const moduleExports = [];
|
|
171
|
-
const hasTypeExport = (name2) => isStub || moduleReExports.find((exp) => exp.names
|
|
171
|
+
const hasTypeExport = (name2) => isStub || moduleReExports.find((exp) => exp.names?.includes(name2));
|
|
172
172
|
if (!hasTypeExport("ModuleOptions")) {
|
|
173
173
|
schemaImports.push("NuxtModule");
|
|
174
174
|
moduleImports.push("default as Module");
|
|
@@ -203,10 +203,6 @@ ${schemaShims.length ? `declare module '@nuxt/schema' {
|
|
|
203
203
|
${schemaShims.join("\n")}
|
|
204
204
|
}
|
|
205
205
|
` : ""}
|
|
206
|
-
${schemaShims.length ? `declare module 'nuxt/schema' {
|
|
207
|
-
${schemaShims.join("\n")}
|
|
208
|
-
}
|
|
209
|
-
` : ""}
|
|
210
206
|
${moduleExports.length ? `
|
|
211
207
|
${moduleExports.join("\n")}` : ""}
|
|
212
208
|
${isStub ? 'export * from "./module"' : ""}
|
package/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { defineCommand, runMain } from 'citty';
|
|
3
3
|
import { consola } from 'consola';
|
|
4
|
-
import { n as name, d as description, v as version } from './shared/module-builder.
|
|
4
|
+
import { n as name, d as description, v as version } from './shared/module-builder.617a9be8.mjs';
|
|
5
5
|
|
|
6
6
|
const _rDefault = (r) => r && typeof r === "object" && "default" in r ? r.default : r;
|
|
7
7
|
const main = defineCommand({
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/module-builder",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"repository": "nuxt/module-builder",
|
|
5
5
|
"description": "Complete solution for building Nuxt modules",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,34 +26,34 @@
|
|
|
26
26
|
"magic-regexp": "^0.8.0",
|
|
27
27
|
"mlly": "^1.7.1",
|
|
28
28
|
"pathe": "^1.1.2",
|
|
29
|
-
"pkg-types": "^1.
|
|
30
|
-
"tsconfck": "^3.1.
|
|
29
|
+
"pkg-types": "^1.2.0",
|
|
30
|
+
"tsconfck": "^3.1.3",
|
|
31
31
|
"unbuild": "^2.0.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@nuxt/kit": "^3.
|
|
35
|
-
"nuxi": "^3.
|
|
34
|
+
"@nuxt/kit": "^3.13.1",
|
|
35
|
+
"nuxi": "^3.13.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@nuxt/eslint-config": "^0.5.
|
|
39
|
-
"@nuxt/kit": "^3.
|
|
40
|
-
"@nuxt/schema": "^3.
|
|
41
|
-
"@types/node": "^20.
|
|
38
|
+
"@nuxt/eslint-config": "^0.5.6",
|
|
39
|
+
"@nuxt/kit": "^3.13.1",
|
|
40
|
+
"@nuxt/schema": "^3.13.1",
|
|
41
|
+
"@types/node": "^20.16.5",
|
|
42
42
|
"@vitest/coverage-v8": "^2.0.5",
|
|
43
43
|
"changelogen": "^0.5.5",
|
|
44
|
-
"eslint": "^9.
|
|
44
|
+
"eslint": "^9.10.0",
|
|
45
45
|
"jiti": "^1.21.6",
|
|
46
|
-
"nuxi": "^3.
|
|
47
|
-
"nuxt": "^3.
|
|
48
|
-
"typescript": "^5.
|
|
46
|
+
"nuxi": "^3.13.1",
|
|
47
|
+
"nuxt": "^3.13.1",
|
|
48
|
+
"typescript": "^5.6.2",
|
|
49
49
|
"vitest": "^2.0.5",
|
|
50
|
-
"vue": "^3.4
|
|
51
|
-
"vue-tsc": "^2.
|
|
50
|
+
"vue": "^3.5.4",
|
|
51
|
+
"vue-tsc": "^2.1.6"
|
|
52
52
|
},
|
|
53
53
|
"resolutions": {
|
|
54
|
-
"@nuxt/kit": "^3.
|
|
55
|
-
"@nuxt/schema": "^3.
|
|
56
|
-
"vue": "^3.4
|
|
54
|
+
"@nuxt/kit": "^3.13.1",
|
|
55
|
+
"@nuxt/schema": "^3.13.1",
|
|
56
|
+
"vue": "^3.5.4"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "unbuild",
|