Skip to content

Commit

Permalink
remove unnecessary files in build.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
hazae41 committed May 2, 2021
1 parent 35cd3d0 commit 56842da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,4 @@ const decompressed = inflate(compressed);

- Pack .wasm to .wasm.js

deno run -A ./build.ts

- Delete pkg/.gitignore, pkg/package.json, pkg/README.md

rm pkg/.gitignore
rm pkg/package.json
rm pkg/README.md
deno run -A ./build.ts
6 changes: 5 additions & 1 deletion build.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
const wasm = await Deno.readFile("./pkg/denoflate_bg.wasm");

await Deno.writeTextFile("./pkg/denoflate_bg.wasm.js",
`export const wasm = new Uint8Array([${wasm.join(",")}]);`);
`export const wasm = new Uint8Array([${wasm.join(",")}]);`);

await Deno.remove("./pkg/.gitignore")
await Deno.remove("./pkg/README.md")
await Deno.remove("./pkg/package.json")

0 comments on commit 56842da

Please sign in to comment.