Skip to content

Commit

Permalink
Update bundling process to use Deno emit module
Browse files Browse the repository at this point in the history
  • Loading branch information
k0gen committed Oct 16, 2024
1 parent 4a175dd commit c97a281
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ rebranding:
# END REBRANDING

scripts/embassy.js: $(TS_FILES)
deno bundle scripts/embassy.ts scripts/embassy.js
deno run --allow-read --allow-write --allow-env --allow-net scripts/bundle.ts

arm:
@rm -f docker-images/x86_64.tar
Expand Down
6 changes: 6 additions & 0 deletions scripts/bundle.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// scripts/bundle.ts
import { bundle } from "https://deno.land/x/[email protected]/mod.ts";

const result = await bundle("scripts/embassy.ts");

await Deno.writeTextFile("scripts/embassy.js", result.code);

0 comments on commit c97a281

Please sign in to comment.