@nuxt/module-builder 0.8.2 → 0.8.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/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.7cb47969.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");
|
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.7cb47969.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