diff --git a/frontend/package.json b/frontend/package.json index 7d8997a..63944a3 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,5 +1,6 @@ { "name": "api-snapshot-testing-frontend", + "version": "0.0.1", "scripts": { "start": "react-scripts start", "build": "react-scripts build", diff --git a/package.json b/package.json new file mode 100644 index 0000000..7595cd5 --- /dev/null +++ b/package.json @@ -0,0 +1,8 @@ +{ + "private": true, + "workspaces": [ + "frontend", + "server", + "worker" + ] +} diff --git a/serve.sh b/serve.sh old mode 100644 new mode 100755 index f9f7cf4..69af8fb --- a/serve.sh +++ b/serve.sh @@ -2,9 +2,7 @@ echo "Installing dependencies..." # npm install -g pm2@2.7.1 -cd frontend && yarn && cd .. -cd server && yarn && cd .. -cd worker && yarn && cd .. +yarn echo "Bundling frontend..." cd frontend && npm run build && cd .. diff --git a/server/package.json b/server/package.json index b93c59e..1945d4d 100644 --- a/server/package.json +++ b/server/package.json @@ -1,5 +1,6 @@ { "name": "api-snapshot-testing-server", + "version": "0.0.1", "scripts": { "start": "node src/index.js", "format": "prettier --print-width 120 --no-semi --single-quote --no-bracket-spacing --write 'src/**/*.js' && standard --fix 'src/**/*.js'" diff --git a/worker/package.json b/worker/package.json index 3c21c93..2561020 100644 --- a/worker/package.json +++ b/worker/package.json @@ -1,5 +1,6 @@ { "name": "api-snapshot-testing-worker", + "version": "0.0.1", "scripts": { "start": "node src/index.js", "format": "prettier --print-width 120 --no-semi --single-quote --no-bracket-spacing --write 'src/**/*.js' && standard --fix 'src/**/*.js'"