@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/README.md +2 -2
- package/dist/.tsbuildinfo +1 -1
- package/dist/@types/stability-tck.d.ts +11 -6
- package/dist/@types/stability-tck.d.ts.map +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
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$/,
|
|
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
|
}
|