@silgi/module-builder 0.4.9 → 0.4.11
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.Bpzy2kWP.mjs';
|
19
19
|
|
20
20
|
const srcDir = fileURLToPath(new URL("src", import.meta.url));
|
21
21
|
const subpaths = [
|
@@ -65,7 +65,15 @@ const build = defineCommand({
|
|
65
65
|
entries.push({
|
66
66
|
input: "src/data/",
|
67
67
|
outDir: `${outDir}/data`,
|
68
|
-
|
68
|
+
addRelativeDeclarationExtensions: true,
|
69
|
+
ext: "js",
|
70
|
+
pattern: [
|
71
|
+
"**",
|
72
|
+
"!**/*.stories.{js,cts,mts,ts,jsx,tsx}",
|
73
|
+
// ignore storybook files
|
74
|
+
"!**/*.{spec,test}.{js,cts,mts,ts,jsx,tsx}"
|
75
|
+
// ignore tests
|
76
|
+
]
|
69
77
|
});
|
70
78
|
}
|
71
79
|
if (isRuntimeFolder) {
|
@@ -333,8 +341,6 @@ export * from '${e.specifier || "./module.mjs"}'`).join("\n")}
|
|
333
341
|
`.trim().replace(/[\n\r]{3,}/g, "\n\n")}
|
334
342
|
`;
|
335
343
|
await promises.writeFile(dtsFile, dtsContents, "utf8");
|
336
|
-
await promises.writeFile(resolve(options.rootDir, "moduleTypes.d.mts"), `export * from './dist/moduleTypes';
|
337
|
-
`, "utf8");
|
338
344
|
}
|
339
345
|
async function loadTSCompilerOptions(path) {
|
340
346
|
const config = await parse(path);
|
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.Bpzy2kWP.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