Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kaminskypavel
Created August 19, 2019 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaminskypavel/4df396d98a592a32c022d06e2e1ef16a to your computer and use it in GitHub Desktop.
Save kaminskypavel/4df396d98a592a32c022d06e2e1ef16a to your computer and use it in GitHub Desktop.
lerna add multiple packages
// they say that laziness is the mother of all inventions
// lerna is currently not supporting multiple packages add (as mentioned here https://github.com/lerna/lerna/issues/1608)
// run this script and copy its output
'dotenv express cors ...put more of your packages here..'
.split(' ')
.map(e => `lerna add ${e} --scope=my-package --no-bootstrap`)
.join('\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment