Skip to content

Commit

Permalink
fix: exclude the native lib from the NPM package
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald Holshausen committed Jan 11, 2021
1 parent 3db75af commit 69a6e5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions scripts/ci/build-and-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ npm run build:v3

"${DIR}"/lib/prepare-release.sh

# Copy Rust native lib
echo " Copying ./native => dist/native"
mkdir -p dist/native && cp -r native dist/
rm -rf dist/native/target

# Link the build so that the examples are always testing the
# current build, in it's properly exported format
(cd dist && npm link)
Expand Down
5 changes: 0 additions & 5 deletions scripts/ci/lib/prepare-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ for artifact in "${artifacts[@]}"; do
cp "${artifact}" "./dist-web/${artifact}"
done

# Copy Rust native lib
echo " Copying ./native => dist/native"
mkdir -p dist/native && cp -r native dist/
rm -rf dist/native/target

echo "--> Creating pact-web package"
sed "s/VERSION/${VERSION}/g" < package.json.web > dist-web/package.json

Expand Down

0 comments on commit 69a6e5b

Please sign in to comment.