@silgi/module-builder 0.4.8 → 0.4.10
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.ZjRZQ_Qg.mjs';
|
19
19
|
|
20
20
|
const srcDir = fileURLToPath(new URL("src", import.meta.url));
|
21
21
|
const subpaths = [
|
@@ -60,15 +60,7 @@ const build = defineCommand({
|
|
60
60
|
const isDataFolder = existsSync(join(cwd, "src", "data"));
|
61
61
|
const isRuntimeFolder = existsSync(join(cwd, "src", "runtime"));
|
62
62
|
const isTypesFolder = existsSync(join(cwd, "src", "types"));
|
63
|
-
const isCoreFolder = existsSync(join(cwd, "src", "core"));
|
64
63
|
const entries = [];
|
65
|
-
if (isCoreFolder) {
|
66
|
-
entries.push({
|
67
|
-
input: "src/core/",
|
68
|
-
outDir: `${outDir}/core`,
|
69
|
-
builder: "rollup"
|
70
|
-
});
|
71
|
-
}
|
72
64
|
if (isDataFolder) {
|
73
65
|
entries.push({
|
74
66
|
input: "src/data/",
|
@@ -341,8 +333,6 @@ export * from '${e.specifier || "./module.mjs"}'`).join("\n")}
|
|
341
333
|
`.trim().replace(/[\n\r]{3,}/g, "\n\n")}
|
342
334
|
`;
|
343
335
|
await promises.writeFile(dtsFile, dtsContents, "utf8");
|
344
|
-
await promises.writeFile(resolve(options.rootDir, "moduleTypes.d.mts"), `export * from './dist/moduleTypes';
|
345
|
-
`, "utf8");
|
346
336
|
}
|
347
337
|
async function loadTSCompilerOptions(path) {
|
348
338
|
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.ZjRZQ_Qg.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