Skip to content

Commit c97a281

Browse files
committed
Update bundling process to use Deno emit module
1 parent 4a175dd commit c97a281

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ rebranding:
4040
# END REBRANDING
4141

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

4545
arm:
4646
@rm -f docker-images/x86_64.tar

scripts/bundle.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// scripts/bundle.ts
2+
import { bundle } from "https://deno.land/x/[email protected]/mod.ts";
3+
4+
const result = await bundle("scripts/embassy.ts");
5+
6+
await Deno.writeTextFile("scripts/embassy.js", result.code);

0 commit comments

Comments
 (0)