Skip to content

Commit 6eb26da

Browse files
committed
Remove unnecessary postBuild step in node tests
1 parent 28b0f76 commit 6eb26da

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

tasks/built-test.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { build, emptyDir } from "jsr:@deno/dnt@0.41.3";
2-
import { copy } from "jsr:@std/fs@^1";
32

43
const outDir = "./build/test";
54

@@ -31,20 +30,4 @@ await build({
3130
version: "0.0.0",
3231
sideEffects: false,
3332
},
34-
postBuild: async () => {
35-
await Deno.mkdir("./build/test/esm/test/main", { recursive: true });
36-
for await (const file of Deno.readDir("./test/main")) {
37-
if (file.isFile) {
38-
const content = await Deno.readTextFile(`./test/main/${file.name}`);
39-
const newContent = content.replaceAll(
40-
`from "../../mod.ts"`,
41-
`from "../../mod.js"`,
42-
);
43-
await Deno.writeTextFile(
44-
`./build/test/esm/test/main/${file.name}`,
45-
newContent,
46-
);
47-
}
48-
}
49-
},
5033
});

0 commit comments

Comments
 (0)