silgi 0.20.1 → 0.20.3
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/index.mjs +1 -1
- package/dist/cli/common.mjs +1 -4
- package/dist/cli/prepare.mjs +0 -1
- package/dist/meta/index.d.mts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/_chunks/index.mjs
CHANGED
package/dist/cli/common.mjs
CHANGED
|
@@ -345,9 +345,6 @@ async function registerModuleExportScan(silgi) {
|
|
|
345
345
|
silgi.hook("prepare:schema.ts", async (options) => {
|
|
346
346
|
for (const module of silgi.scanModules) {
|
|
347
347
|
const moduleReExports = [];
|
|
348
|
-
if (module.entryPath.endsWith("src/module.ts")) {
|
|
349
|
-
module.entryPath = module.entryPath.replace(/src\/module\.ts$/, "dist/module.mjs");
|
|
350
|
-
}
|
|
351
348
|
const moduleTypes = await promises.readFile(module.entryPath.replace(/\.mjs$/, "Types.d.ts"), "utf8").catch(() => "");
|
|
352
349
|
const normalisedModuleTypes = moduleTypes.replace(/export\s*\{.*?\}/gs, (match) => match.replace(/\b(type|interface)\b/g, ""));
|
|
353
350
|
for (const e of findTypeExports(normalisedModuleTypes)) {
|
|
@@ -858,7 +855,7 @@ ${injectedResult.code}`;
|
|
|
858
855
|
console.error("Failed to read scan.ts file:", error);
|
|
859
856
|
} else {
|
|
860
857
|
if (error instanceof Error) {
|
|
861
|
-
consola.withTag("silgi").
|
|
858
|
+
consola.withTag("silgi").info(error.message);
|
|
862
859
|
}
|
|
863
860
|
}
|
|
864
861
|
return {
|
package/dist/cli/prepare.mjs
CHANGED
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED