We use lerna for publishing.
These options are useful
--scopeto only care about one package
lerna publish --scope cozy-client
--npm-tagto change the default npm-tag (latest). Useful if you are testing and don’t want your users to end up with your changes.
$ lerna publish --scope cozy-client --npm-tag beta $ npm install cozy-client@beta
--force-publishto force publication even if there were no changes
lerna publish --scope cozy-client --force-publish cozy-client
yarn watch to watch on cozy-client side and
yarn link on the app side.
If you have a problem like “React is not found” from cozy-client files, it may be because webpack is resolving the dependencies in cozy-client’s
node_modules, you may want to
ln -s your app node_modules inside cozy-client’s.
$ ls code cozy-banks cozy-client $ cd cozy-client/packages/cozy-client $ rm -rf node_modules $ ln -s ~/code/cozy-banks/node_modules .