@silgi/module-builder 0.0.8 → 0.0.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,11 +15,12 @@ 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.BmGzLVlp.mjs';
|
19
19
|
|
20
20
|
const srcDir = fileURLToPath(new URL("src", import.meta.url));
|
21
21
|
const subpaths = [
|
22
|
-
"runtime"
|
22
|
+
"runtime",
|
23
|
+
"types"
|
23
24
|
];
|
24
25
|
const build = defineCommand({
|
25
26
|
meta: {
|
@@ -109,6 +110,7 @@ const build = defineCommand({
|
|
109
110
|
// @ts-ignore
|
110
111
|
ignoreConditions: ["silgi", "silgiTypes", "pckSilgi", "pckSilgiTypes", ...packageData.config.ignoreConditions || []],
|
111
112
|
entries: [
|
113
|
+
{ input: "src/types/index.ts" },
|
112
114
|
"src/module",
|
113
115
|
{
|
114
116
|
input: "src/runtime/",
|
@@ -129,8 +131,7 @@ const build = defineCommand({
|
|
129
131
|
// jsx: 'automatic',
|
130
132
|
// jsxFactory: 'h',
|
131
133
|
// },
|
132
|
-
}
|
133
|
-
{ input: "src/types/index.ts" }
|
134
|
+
}
|
134
135
|
],
|
135
136
|
rollup: {
|
136
137
|
esbuild: {
|
@@ -145,6 +146,7 @@ const build = defineCommand({
|
|
145
146
|
"silgi/kit",
|
146
147
|
"silgi/runtime",
|
147
148
|
"silgi/module",
|
149
|
+
...subpaths.map((subpath) => `${packageData.name}/${subpath}`),
|
148
150
|
...Object.keys(packageData.dependencies || {}),
|
149
151
|
...Object.keys(packageData.peerDependencies || {}),
|
150
152
|
...Object.keys(rootPkg.dependencies || {}),
|
@@ -252,7 +254,13 @@ const build = defineCommand({
|
|
252
254
|
stubOptions: {
|
253
255
|
jiti: {
|
254
256
|
alias: {
|
255
|
-
[`${packageData.name}/runtime/*`]: resolve(srcDir, "../runtime/*")
|
257
|
+
[`${packageData.name}/runtime/*`]: resolve(srcDir, "../runtime/*"),
|
258
|
+
...Object.fromEntries(
|
259
|
+
subpaths.map((subpath) => [
|
260
|
+
`${packageData.name}/${subpath}`,
|
261
|
+
resolve(srcDir, `${subpath}/index.ts`)
|
262
|
+
])
|
263
|
+
)
|
256
264
|
}
|
257
265
|
}
|
258
266
|
}
|
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.BmGzLVlp.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