Skip to content

Commit

Permalink
fix: npm packages noir resolution (#11946)
Browse files Browse the repository at this point in the history
should be reverted after noir package resolution is fixed
  • Loading branch information
sklppy88 authored Feb 12, 2025
1 parent aaf42a7 commit d3e3f20
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions yarn-project/publish_npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,11 @@ function deploy_package() {
jq --arg v $VERSION ".dependencies[\"$PKG\"] = \$v" package.json >$TMP && mv $TMP package.json
done

# TODO: Remove this after @noir package resolution is fixed
if [[ "$PACKAGE_NAME" == "@aztec/pxe" ]]; then
# Hardcodes "1.0.0-beta.1" for @noir-lang/types
for PKG in $(jq --raw-output ".dependencies | keys[] | select(. == \"@noir-lang/types\")" package.json); do
jq ".dependencies[\"$PKG\"] = \"1.0.0-beta.1\"" package.json >$TMP && mv $TMP package.json
done
fi
# TODO: Remove this after @noir-lang package resolution is fixed
# Hardcodes "1.0.0-beta.1" for @noir-lang packages
for PKG in $(jq --raw-output ".dependencies | keys[] | select(contains(\"@noir-lang/\"))" package.json); do
jq ".dependencies[\"$PKG\"] = \"1.0.0-beta.1\"" package.json >$TMP && mv $TMP package.json
done
fi

# Publish
Expand Down

0 comments on commit d3e3f20

Please sign in to comment.