silgi 0.37.40 → 0.37.41
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/cli/build.mjs +2 -1
- package/dist/cli/index.mjs +1 -1
- package/package.json +1 -1
package/dist/cli/build.mjs
CHANGED
|
@@ -330,7 +330,8 @@ async function registerModuleExportScan(silgi) {
|
|
|
330
330
|
if (!module.entryPath) {
|
|
331
331
|
continue;
|
|
332
332
|
}
|
|
333
|
-
const
|
|
333
|
+
const path = module.meta._packageName ? module.entryPath.replace(/\.mjs$/, "Types.d.mts") : module.entryPath;
|
|
334
|
+
const moduleTypes = await promises.readFile(path, "utf8").catch(() => "");
|
|
334
335
|
const normalisedModuleTypes = moduleTypes.replace(/export\s*\{.*?\}/gs, (match) => match.replace(/\b(type|interface)\b/g, ""));
|
|
335
336
|
for (const e of findTypeExports(normalisedModuleTypes)) {
|
|
336
337
|
moduleReExports.push(e);
|
package/dist/cli/index.mjs
CHANGED