Me and a coworker are working on the deploy of some APIs that have some sharedlibs in common. The thing is, he said that workspaces shouldn't be used in production, but no reason was presented to defend that. I came with the following setup:
- Set SSH Keys from the remote for pull the repository
- Run
yarn workspace <api-name> installfor a single API - Run
yarn buildfor ES6/Babel - Run API from dist folder. And we're done. No need for bash scripts or NPM private packages.