@silgi/module-builder 0.7.0 → 0.7.2
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.C1cFCKRO.mjs';
|
19
19
|
|
20
20
|
const subpaths = [
|
21
21
|
"runtime",
|
@@ -53,7 +53,19 @@ const build = defineCommand({
|
|
53
53
|
const { build } = await import('unbuild');
|
54
54
|
const cwd = resolve(context.args.cwd || context.args.rootDir || ".");
|
55
55
|
const packageData = await readPackageJSON(cwd);
|
56
|
-
const jiti = createJiti(cwd, {
|
56
|
+
const jiti = createJiti(cwd, {
|
57
|
+
fsCache: false,
|
58
|
+
moduleCache: false,
|
59
|
+
alias: {
|
60
|
+
[`${packageData.name}/runtime/*`]: resolve(cwd, "src/runtime/*"),
|
61
|
+
...Object.fromEntries(
|
62
|
+
subpaths.map((subpath) => [
|
63
|
+
`${packageData.name}/${subpath}`,
|
64
|
+
resolve(cwd, `src/${subpath}/index.ts`)
|
65
|
+
])
|
66
|
+
)
|
67
|
+
}
|
68
|
+
});
|
57
69
|
const outDir = context.args.outDir || "dist";
|
58
70
|
const rootPkg = await readPackageJSON(join(pkgDir, "package.json"));
|
59
71
|
const isDataFolder = existsSync(join(cwd, "src", "data"));
|
@@ -240,7 +252,7 @@ const build = defineCommand({
|
|
240
252
|
...Object.fromEntries(
|
241
253
|
subpaths.map((subpath) => [
|
242
254
|
`${packageData.name}/${subpath}`,
|
243
|
-
resolve(cwd,
|
255
|
+
resolve(cwd, `src/${subpath}/index.ts`)
|
244
256
|
])
|
245
257
|
)
|
246
258
|
}
|
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.C1cFCKRO.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