@silgi/module-builder 0.0.3 → 0.0.5
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.7mWLavfN.mjs';
|
19
19
|
|
20
20
|
const srcDir = fileURLToPath(new URL("src", import.meta.url));
|
21
21
|
const subpaths = [
|
@@ -165,6 +165,7 @@ const build = defineCommand({
|
|
165
165
|
}, ctx.options.rollup.dts.compilerOptions, await loadTSCompilerOptions(entry.path));
|
166
166
|
ctx.options.rollup.dts.compilerOptions = convertCompilerOptionsFromJson(mergedCompilerOptions, entry.path).options;
|
167
167
|
options.plugins ||= [];
|
168
|
+
ctx.options.rollup.dts.compilerOptions.customConditions = [];
|
168
169
|
if (!Array.isArray(options.plugins))
|
169
170
|
options.plugins = [options.plugins];
|
170
171
|
const runtimeEntries = ctx.options.entries.filter((entry2) => entry2.builder === "mkdist");
|
@@ -315,7 +316,7 @@ async function writeTypes(options, isStub, moduleMeta) {
|
|
315
316
|
}
|
316
317
|
if (hasTypeExport("ModuleRuntimeMethods")) {
|
317
318
|
moduleImports.push("ModuleRuntimeMethods");
|
318
|
-
schemaShims.push(` interface SilgiRuntimeMethods
|
319
|
+
schemaShims.push(` interface SilgiRuntimeMethods extends ModuleRuntimeMethods {}`);
|
319
320
|
}
|
320
321
|
const dtsContents = `${`
|
321
322
|
${schemaImports.length ? `import type { ${schemaImports.join(", ")} } from 'silgi/types'` : ""}
|
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.7mWLavfN.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