diff --git a/scripts/ci/build-and-test.sh b/scripts/ci/build-and-test.sh index d59459d04..1f6d1be1c 100755 --- a/scripts/ci/build-and-test.sh +++ b/scripts/ci/build-and-test.sh @@ -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) diff --git a/scripts/ci/lib/prepare-release.sh b/scripts/ci/lib/prepare-release.sh index 4f10b1674..5ef1a430c 100755 --- a/scripts/ci/lib/prepare-release.sh +++ b/scripts/ci/lib/prepare-release.sh @@ -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