@silgi/module-builder 0.0.6 → 0.0.8
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.BFYEks-E.mjs';
|
19
19
|
|
20
20
|
const srcDir = fileURLToPath(new URL("src", import.meta.url));
|
21
21
|
const subpaths = [
|
@@ -107,7 +107,7 @@ const build = defineCommand({
|
|
107
107
|
outDir,
|
108
108
|
// eslint-disable-next-line ts/ban-ts-comment
|
109
109
|
// @ts-ignore
|
110
|
-
ignoreConditions: ["silgi", "silgiTypes", "pckSilgi", "pckSilgiTypes", ...
|
110
|
+
ignoreConditions: ["silgi", "silgiTypes", "pckSilgi", "pckSilgiTypes", ...packageData.config.ignoreConditions || []],
|
111
111
|
entries: [
|
112
112
|
"src/module",
|
113
113
|
{
|
@@ -129,7 +129,8 @@ const build = defineCommand({
|
|
129
129
|
// jsx: 'automatic',
|
130
130
|
// jsxFactory: 'h',
|
131
131
|
// },
|
132
|
-
}
|
132
|
+
},
|
133
|
+
{ input: "src/types/index.ts" }
|
133
134
|
],
|
134
135
|
rollup: {
|
135
136
|
esbuild: {
|
@@ -259,7 +260,7 @@ const build = defineCommand({
|
|
259
260
|
}
|
260
261
|
});
|
261
262
|
async function writeTypes(options, isStub, moduleMeta) {
|
262
|
-
const dtsFile = resolve(options.outDir, "
|
263
|
+
const dtsFile = resolve(options.outDir, "moduleTypes.d.ts");
|
263
264
|
if (existsSync(dtsFile)) {
|
264
265
|
return;
|
265
266
|
}
|
@@ -335,7 +336,7 @@ export { ${moduleReExports[0].names.map((n) => (n === "default" ? "" : "type ")
|
|
335
336
|
`.trim().replace(/[\n\r]{3,}/g, "\n\n")}
|
336
337
|
`;
|
337
338
|
await promises.writeFile(dtsFile, dtsContents, "utf8");
|
338
|
-
await promises.writeFile(resolve(options.rootDir, "
|
339
|
+
await promises.writeFile(resolve(options.rootDir, "moduleTypes.d.ts"), `export * from './dist/moduleTypes';
|
339
340
|
`, "utf8");
|
340
341
|
}
|
341
342
|
async function loadTSCompilerOptions(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.BFYEks-E.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