We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 138e318 commit 647334bCopy full SHA for 647334b
scripts/build/mts.ts
@@ -7,7 +7,7 @@
7
* It's a part of the build process.
8
*/
9
10
-import { readdir, writeFile } from "fs/promises";
+import { readdir, copyFile } from "fs/promises";
11
import { join, resolve } from "path";
12
13
const root = resolve(process.env.PACKAGE_OUTPUT_PATH || "lib");
@@ -26,7 +26,7 @@ async function createMTSFiles(dir: string): Promise<void> {
26
promises.push(createMTSFiles(fullPath));
27
} else if (file.isFile() && file.name.endsWith(".d.ts")) {
28
const newFilePath = fullPath.replace(".d.ts", ".d.mts");
29
- promises.push(writeFile(newFilePath, `export * from './${file.name}'`));
+ promises.push(copyFile(fullPath, newFilePath));
30
}
31
32
0 commit comments