@rotorsoft/act-tck 1.39.2 → 1.40.0

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/index.js CHANGED
@@ -364,8 +364,9 @@ async function load_surface(entry2) {
364
364
  const content = await fs.readFile(abs, "utf8");
365
365
  visited.set(abs, content);
366
366
  const re_export = /^\s*export\b[^"';]*\bfrom\s+["'](\.[^"']+)["']/gm;
367
+ const ext = abs.endsWith(".d.ts") ? ".d.ts" : ".ts";
367
368
  for (const m of content.matchAll(re_export)) {
368
- const rel = m[1].replace(/\.js$/, ".ts");
369
+ const rel = m[1].replace(/\.js$/, ext);
369
370
  const target = path.resolve(path.dirname(abs), rel);
370
371
  await walk(target);
371
372
  }