summaryrefslogtreecommitdiff
path: root/tools/node_compat/setup.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tools/node_compat/setup.ts')
-rwxr-xr-xtools/node_compat/setup.ts10
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/node_compat/setup.ts b/tools/node_compat/setup.ts
index 3cac72019..c8fd6a8e0 100755
--- a/tools/node_compat/setup.ts
+++ b/tools/node_compat/setup.ts
@@ -182,9 +182,10 @@ async function copyTests() {
const srcFile = await Deno.open(
new URL(`${suite}/${entry.name}`, NODE_LOCAL_TEST_URL),
);
- await writeAll(
- destFile,
- encoder.encode(`// deno-fmt-ignore-file
+ if (dest.pathname.endsWith("js")) {
+ await writeAll(
+ destFile,
+ encoder.encode(`// deno-fmt-ignore-file
// deno-lint-ignore-file
// Copyright Joyent and Node contributors. All rights reserved. MIT license.
@@ -192,7 +193,8 @@ async function copyTests() {
// This file is automatically generated by "node/_tools/setup.ts". Do not modify this file manually
`),
- );
+ );
+ }
await srcFile.readable.pipeTo(destFile.writable);
}
}