@nuxt/module-builder 1.0.0-alpha.2 → 1.0.0
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
|
@@ -11,7 +11,7 @@ import { consola } from 'consola';
|
|
|
11
11
|
import { resolvePath, findExports, findTypeExports } from 'mlly';
|
|
12
12
|
import { defineCommand } from 'citty';
|
|
13
13
|
import { convertCompilerOptionsFromJson } from 'typescript';
|
|
14
|
-
import { v as version, n as name } from '../shared/module-builder.
|
|
14
|
+
import { v as version, n as name } from '../shared/module-builder.mlKecDzW.mjs';
|
|
15
15
|
|
|
16
16
|
const build = defineCommand({
|
|
17
17
|
meta: {
|
|
@@ -242,8 +242,10 @@ ${schemaShims.join("\n")}
|
|
|
242
242
|
${moduleExports.length ? `
|
|
243
243
|
${moduleExports.join("\n")}` : ""}
|
|
244
244
|
${isStub ? 'export * from "./module.mjs"' : ""}
|
|
245
|
-
${moduleReExports.map((e) => `
|
|
245
|
+
${moduleReExports.filter((e) => e.type === "named" || e.type === "default").map((e) => `
|
|
246
246
|
export { ${e.names.map((n) => (n === "default" ? "" : "type ") + n).join(", ")} } from '${e.specifier || "./module.mjs"}'`).join("\n")}
|
|
247
|
+
${moduleReExports.filter((e) => e.type === "star").map((e) => `
|
|
248
|
+
export * from '${e.specifier || "./module.mjs"}'`).join("\n")}
|
|
247
249
|
`.trim().replace(/[\n\r]{3,}/g, "\n\n") + "\n";
|
|
248
250
|
await promises.writeFile(dtsFile, dtsContents, "utf8");
|
|
249
251
|
}
|
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 { v as version, d as description, n as name } from './shared/module-builder.
|
|
4
|
+
import { v as version, d as description, n as name } from './shared/module-builder.mlKecDzW.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": "1.0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"repository": "nuxt/module-builder",
|
|
5
5
|
"description": "Complete solution for building Nuxt modules",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,22 +26,6 @@
|
|
|
26
26
|
"files": [
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
|
-
"scripts": {
|
|
30
|
-
"build": "unbuild",
|
|
31
|
-
"dev:prepare": "unbuild --stub && pnpm -r dev:prepare",
|
|
32
|
-
"example:build": "pnpm nuxt-module-build build ./example",
|
|
33
|
-
"lint": "eslint .",
|
|
34
|
-
"nuxt-module-build": "JITI_ESM_RESOLVE=1 jiti ./src/cli.ts",
|
|
35
|
-
"prepack": "pnpm build",
|
|
36
|
-
"release": "pnpm vitest run && pnpm build && changelogen --release && pnpm publish && git push --follow-tags",
|
|
37
|
-
"test": "pnpm vitest --coverage",
|
|
38
|
-
"test:attw": "attw --pack example && attw --pack .",
|
|
39
|
-
"test:publint": "cd example && publint",
|
|
40
|
-
"test:engines": "installed-check -d --no-workspaces",
|
|
41
|
-
"test:knip": "knip --exclude unresolved",
|
|
42
|
-
"test:types": "vue-tsc --noEmit && pnpm -r test:types"
|
|
43
|
-
},
|
|
44
|
-
"packageManager": "pnpm@10.7.1",
|
|
45
29
|
"dependencies": {
|
|
46
30
|
"citty": "^0.1.6",
|
|
47
31
|
"consola": "^3.4.2",
|
|
@@ -54,7 +38,7 @@
|
|
|
54
38
|
"pkg-types": "^2.1.0",
|
|
55
39
|
"tsconfck": "^3.1.5",
|
|
56
40
|
"unbuild": "^3.5.0",
|
|
57
|
-
"vue-sfc-transformer": "^0.1.
|
|
41
|
+
"vue-sfc-transformer": "^0.1.4"
|
|
58
42
|
},
|
|
59
43
|
"peerDependencies": {
|
|
60
44
|
"@nuxt/cli": "^3.24.1",
|
|
@@ -68,7 +52,7 @@
|
|
|
68
52
|
"@types/node": "^22.14.0",
|
|
69
53
|
"@vitest/coverage-v8": "^3.1.1",
|
|
70
54
|
"changelogen": "^0.6.1",
|
|
71
|
-
"eslint": "^9.
|
|
55
|
+
"eslint": "^9.24.0",
|
|
72
56
|
"installed-check": "^9.3.0",
|
|
73
57
|
"knip": "^5.46.5",
|
|
74
58
|
"nuxt": "^3.16.2",
|
|
@@ -90,5 +74,19 @@
|
|
|
90
74
|
},
|
|
91
75
|
"engines": {
|
|
92
76
|
"node": "^18.0.0 || >=20.0.0"
|
|
77
|
+
},
|
|
78
|
+
"scripts": {
|
|
79
|
+
"build": "unbuild",
|
|
80
|
+
"dev:prepare": "unbuild --stub && pnpm -r dev:prepare",
|
|
81
|
+
"example:build": "pnpm nuxt-module-build build ./example",
|
|
82
|
+
"lint": "eslint .",
|
|
83
|
+
"nuxt-module-build": "JITI_ESM_RESOLVE=1 jiti ./src/cli.ts",
|
|
84
|
+
"release": "pnpm vitest run && pnpm build && changelogen --release && pnpm publish && git push --follow-tags",
|
|
85
|
+
"test": "pnpm vitest --coverage",
|
|
86
|
+
"test:attw": "attw --pack example && attw --pack .",
|
|
87
|
+
"test:publint": "cd example && publint",
|
|
88
|
+
"test:engines": "installed-check -d --no-workspaces",
|
|
89
|
+
"test:knip": "knip --exclude unresolved",
|
|
90
|
+
"test:types": "vue-tsc --noEmit && pnpm -r test:types"
|
|
93
91
|
}
|
|
94
|
-
}
|
|
92
|
+
}
|