Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(wasm): adapt generated wasm package names #873

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
6 changes: 4 additions & 2 deletions packages/account-wasm/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ pnpm wasm-pack build --target bundler --out-dir ./pkg-session --release --featur
# This removes `"type": "module"` field from the package.json files
for dir in pkg-controller pkg-session; do
mv $dir/package.json $dir/temp.json
jq -r 'del(.type)' $dir/temp.json >$dir/package.json
rm $dir/temp.json
# replace package.json name with the directory name
jq ".name = \"@cartridge/$dir\"" $dir/temp.json >$dir/temp2.json
jq -r 'del(.type)' $dir/temp2.json >$dir/temp3.json
mv $dir/temp3.json $dir/package.json
done
Loading