diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2023-04-18 00:36:49 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-18 00:36:49 +0900 |
commit | 559a61b879366c01fbbc078c03743cd836189ae7 (patch) | |
tree | a87d42f63c26eb7c91f2f4ef3edbec98aeb38c82 /tools/node_compat/setup.ts | |
parent | bcbdaac7e6399870b5b6fcdf765013c1682fe80c (diff) |
chore: update node compat config (#18736)
Diffstat (limited to 'tools/node_compat/setup.ts')
-rwxr-xr-x | tools/node_compat/setup.ts | 10 |
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); } } |