Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion addhybridpackage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@ find src -name '*.d.ts' -exec cp {} dist/cjs \;
mkdir -p dist/cjs/abi
mkdir -p dist/mjs/abi
find src/abi -name '*.json' -exec cp {} dist/cjs/abi \;
find src/abi -name '*.json' -exec cp {} dist/mjs/abi \;
find src/abi -name '*.json' -exec cp {} dist/mjs/abi \;

# add import assertions to mjs
sed -i 's/import ERC20 from \"..\/abi\/ERC20.json\"/import ERC20 from \"..\/abi\/ERC20.json\" assert { type: \"json\" }/g' dist/mjs/helper/util.js