Skip to content

Commit

Permalink
fix: use 'base64 -w 0' to prevent junk newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
coolaj86 committed Feb 26, 2024
1 parent b66596f commit 8e3b7e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/wasm-dpp/scripts/build-js.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if ! test -f ./wasm/wasm_dpp_bg.wasm; then
fi

echo 'Converting wasm binary into base64 module'
WASM_BUILD_BASE_64="$(base64 -i './wasm/wasm_dpp_bg.wasm')"
WASM_BUILD_BASE_64="$(base64 -w 0 './wasm/wasm_dpp_bg.wasm')"
echo 'module.exports = "'"${WASM_BUILD_BASE_64}"'"' > './dist/wasm/wasm_dpp_bg.js'

## save directly to dist folder to avoid re-generating TS declarations
Expand Down

0 comments on commit 8e3b7e8

Please sign in to comment.