We use lerna for publishing.

lerna publish

These options are useful

lerna publish --scope cozy-client
$ lerna publish --scope cozy-client --npm-tag beta
$ npm install cozy-client@beta
lerna publish --scope cozy-client --force-publish cozy-client


Use 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

$ cd cozy-client/packages/cozy-client
$ rm -rf node_modules
$ ln -s ~/code/cozy-banks/node_modules .