-Supported by yarn workspace
and lerna
-
Use yarn workspace
to manage mono-repo, including dependencies, scripts.
For running npm scripts:
yarn workspace <package-name> run <script-name>
We set two env in package.json
RELOAD_ENV=false # as iframe in explore project, equal `reload`.
NODE_ENV=development
We use lerna
to update versions of packages. For every deploying, you need to run lerna version --conventional-commits
to update packages' versions.