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.
@@ -330,7 +330,8 @@ async function registerModuleExportScan(silgi) {
330
330
  if (!module.entryPath) {
331
331
  continue;
332
332
  }
333
- const moduleTypes = await promises.readFile(module.entryPath.replace(/\.mjs$/, "moduleTypes.d.mts"), "utf8").catch(() => "");
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);
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { defineCommand, runMain } from 'citty';
3
3
 
4
- const version = "0.37.40";
4
+ const version = "0.37.41";
5
5
  const packageJson = {
6
6
  version: version};
7
7
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.37.40",
4
+ "version": "0.37.41",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {