Skip to content

Commit

Permalink
Add wasm artifact to lamdba bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
printfn committed Oct 1, 2024
1 parent 12ab6fb commit 05c7b35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telegram-bot/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ npm exec -- esbuild --bundle index.ts --outdir=dist --platform=node

rm -f lambda_package.zip
# don't include package.json because esbuild makes a CJS bundle that won't work if node finds `"type": "module"`
zip -j lambda_package.zip dist/index.js
zip -j lambda_package.zip dist/index.js node_modules/fend-wasm-nodejs/fend_wasm_bg.wasm

0 comments on commit 05c7b35

Please sign in to comment.