Skip to content

Commit c629702

Browse files
committed
Fix wrong .npmignore file
1 parent 08ad8ca commit c629702

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

scripts/build_npm.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,13 @@ await build({
7575

7676
Deno.copyFileSync("LICENSE", "npm/LICENSE");
7777
Deno.copyFileSync("README.md", "npm/README.md");
78+
79+
// Fix wrong .npmignore file
80+
Deno.writeFileSync(
81+
"npm/.npmignore",
82+
new TextEncoder().encode(
83+
new TextDecoder()
84+
.decode(Deno.readFileSync("npm/.npmignore"))
85+
.replace("src/", "/src/"),
86+
),
87+
);

0 commit comments

Comments
 (0)