Skip to content

Commit

Permalink
build for nodejs
Browse files Browse the repository at this point in the history
  • Loading branch information
DanTehrani committed Feb 6, 2024
1 parent c36eb87 commit 97ed7a3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@
new_version=$1

# Build the wasm package
wasm-pack build &&
wasm-pack build --scope personaelabs --target nodejs &&
cd pkg &&

# Rename the name field in package.json to @personaelabs/merkle-tree
jq '.name="@personaelabs/merkle-tree"' package.json > package.json.tmp &&
mv package.json.tmp package.json &&

# Set the new version
npm version $new_version &&

Expand Down

0 comments on commit 97ed7a3

Please sign in to comment.