@silgi/module-builder 0.0.10 → 0.0.12
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
@@ -15,7 +15,7 @@ import { pkgDir } from 'silgi/runtime/meta';
|
|
15
15
|
import { parse } from 'tsconfck';
|
16
16
|
import { convertCompilerOptionsFromJson } from 'typescript';
|
17
17
|
import { scanExports } from 'unimport';
|
18
|
-
import { v as version, n as name } from '../shared/silgi-module-builder.
|
18
|
+
import { v as version, n as name } from '../shared/silgi-module-builder.Duqg5Gk0.mjs';
|
19
19
|
|
20
20
|
const srcDir = fileURLToPath(new URL("src", import.meta.url));
|
21
21
|
const subpaths = [
|
@@ -110,7 +110,6 @@ const build = defineCommand({
|
|
110
110
|
// @ts-ignore
|
111
111
|
ignoreConditions: ["silgi", "silgiTypes", "pckSilgi", "pckSilgiTypes", ...packageData.config.ignoreConditions || []],
|
112
112
|
entries: [
|
113
|
-
{ input: "src/types/index.ts" },
|
114
113
|
"src/module",
|
115
114
|
{
|
116
115
|
input: "src/runtime/",
|
@@ -131,7 +130,8 @@ const build = defineCommand({
|
|
131
130
|
// jsx: 'automatic',
|
132
131
|
// jsxFactory: 'h',
|
133
132
|
// },
|
134
|
-
}
|
133
|
+
},
|
134
|
+
{ input: "src/types/index.ts" }
|
135
135
|
],
|
136
136
|
rollup: {
|
137
137
|
esbuild: {
|
@@ -299,9 +299,9 @@ async function writeTypes(options, isStub, moduleMeta) {
|
|
299
299
|
moduleImports.push("ModuleRuntimeOptions");
|
300
300
|
schemaShims.push(` interface SilgiRuntimeOptions { ${moduleMeta.configKey}: ModuleRuntimeOptions }`);
|
301
301
|
}
|
302
|
-
if (hasTypeExport("
|
303
|
-
moduleImports.push("
|
304
|
-
schemaShims.push(" interface
|
302
|
+
if (hasTypeExport("ModuleRuntimeShareds")) {
|
303
|
+
moduleImports.push("ModuleRuntimeShareds");
|
304
|
+
schemaShims.push(" interface SilgiRuntimeShareds extends ModuleRuntimeShareds {}");
|
305
305
|
}
|
306
306
|
if (hasTypeExport("ModuleEvents")) {
|
307
307
|
moduleImports.push("ModuleEvents");
|
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/silgi-module-builder.
|
4
|
+
import { v as version, d as description, n as name } from './shared/silgi-module-builder.Duqg5Gk0.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