diff --git a/package.json b/package.json index 4cbe14cd..509989f8 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,8 @@ "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": {