diff --git a/scripts/.npmignore b/scripts/.npmignore index 95ef7c6b..8be782e5 100644 --- a/scripts/.npmignore +++ b/scripts/.npmignore @@ -1 +1,6 @@ *.orig + +/changelog-header.sh +/publish.sh +/set-version.sh +/test.sh diff --git a/scripts/publish.sh b/scripts/publish.sh index f71ffe1e..bf9ff38b 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -78,6 +78,9 @@ confirm "Are you sure you want to publish $VERSION?" || die "Aborted publishing # This should fail if this tag already exists. git tag "v$VERSION" +# Delete Android build directory so no stale files are accidentally included. +rm -rf react-native/android/build + # Publish to npm, informing the prepublish script to build Android modules. echo "Publishing $VERSION to npm..." PRERELEASE=$(grep -Eio '[a-z]+' <<< "$VERSION") diff --git a/src/.npmignore b/src/.npmignore index 1d01e3e7..f6ae595a 100644 --- a/src/.npmignore +++ b/src/.npmignore @@ -1,7 +1,11 @@ *.orig -object-store/external/catch -object-store/external/pegtl/Makefile -object-store/external/pegtl/examples -object-store/external/pegtl/unit_tests -object-store/tests +/object-store/**/*.cmake +/object-store/**/*.dylib +/object-store/**/*.sh +/object-store/**/CMake* +/object-store/**/Makefile +/object-store/external/catch/ +/object-store/external/pegtl/examples/ +/object-store/external/pegtl/unit_tests/ +/object-store/tests/