@silgi/module-builder 0.4.4 → 0.4.5
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.CthaFlaR.mjs';
|
19
19
|
|
20
20
|
const srcDir = fileURLToPath(new URL("src", import.meta.url));
|
21
21
|
const subpaths = [
|
@@ -219,7 +219,7 @@ const build = defineCommand({
|
|
219
219
|
"build:prepare": async function(_ctx) {
|
220
220
|
for (const subpath of subpaths) {
|
221
221
|
await writeFile(
|
222
|
-
`./${subpath}.d.
|
222
|
+
`./${subpath}.d.mts`,
|
223
223
|
`export * from './dist/${subpath}/index';`
|
224
224
|
);
|
225
225
|
}
|
@@ -256,7 +256,7 @@ const build = defineCommand({
|
|
256
256
|
}
|
257
257
|
});
|
258
258
|
async function writeTypes(options, isStub, _moduleMeta) {
|
259
|
-
const dtsFile = resolve(options.outDir, "moduleTypes.d.
|
259
|
+
const dtsFile = resolve(options.outDir, "moduleTypes.d.mts");
|
260
260
|
if (existsSync(dtsFile)) {
|
261
261
|
return;
|
262
262
|
}
|
@@ -345,7 +345,7 @@ export * from '${e.specifier || "./module.mjs"}'`).join("\n")}
|
|
345
345
|
`.trim().replace(/[\n\r]{3,}/g, "\n\n")}
|
346
346
|
`;
|
347
347
|
await promises.writeFile(dtsFile, dtsContents, "utf8");
|
348
|
-
await promises.writeFile(resolve(options.rootDir, "moduleTypes.d.
|
348
|
+
await promises.writeFile(resolve(options.rootDir, "moduleTypes.d.mts"), `export * from './dist/moduleTypes';
|
349
349
|
`, "utf8");
|
350
350
|
}
|
351
351
|
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.CthaFlaR.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