diff --git a/.npmignore b/.npmignore index 4d657ee4..f6823832 100644 --- a/.npmignore +++ b/.npmignore @@ -62,4 +62,5 @@ coverage yarn.lock tests lib/.watchmanconfig +buddybuild_postclone.sh diff --git a/buddybuild_postclone.sh b/buddybuild_postclone.sh new file mode 100644 index 00000000..0456e305 --- /dev/null +++ b/buddybuild_postclone.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +# Copy firebase lib into tests directory +cp -R $(node --eval "console.log(require('path').resolve('./lib'));")/* $(node --eval "console.log(require('path').resolve('./tests/firebase'));")/ + +# Install /tests npm packages +cd tests && npm install diff --git a/package.json b/package.json index 509989f8..4cbe14cd 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,6 @@ "tests-watch-start": "watchman watch $(node --eval \"console.log(require('path').resolve('./lib'));\") && wml start", "tests-watch-stop": "watchman watch-del $(node --eval \"console.log(require('path').resolve('./lib'));\") && wml stop", "tests-pod-install": "cd tests && npm run ios:pod:install", - "build-copy": "cp -R $(node --eval \"console.log(require('path').resolve('./lib'));\")/* $(node --eval \"console.log(require('path').resolve('./tests/firebase'));\")/", - "postinstall": "test -d \"./tests\" && (npm run build-copy && npm run tests-npm-install) || echo \"Tests folder does not exists - skipping additional testing steps.\"", "flow": "flow" }, "repository": {