Skip to content

Latest commit

 

History

History
85 lines (55 loc) · 1.15 KB

README.md

File metadata and controls

85 lines (55 loc) · 1.15 KB

Managing dependencies

In this document

Working with a Scoped package

Add

lerna exec --scope @deriv/[Package] -- npm install [Package] --save

For example

lerna exec --scope @deriv/shared -- npm install sax --save

Update

  1. In root directory run update command
lerna exec --scope @deriv/[Package] -- npm update [package]
  1. update the version in package.json for the package

For Example if you want update moment in core package:

  1. lerna exec --scope @deriv/core -- npm update moment
  2. upate the package.json

Remove

lerna exec --scope @deriv/[Package] -- npm uninstall [package]

For example:

npx lerna exec --scope @deriv/shared -- npm uninstall sax --save

Root

Add

npm install package-name --save-dev

For example:

npm install --save-dev commitizen

Update

npm update package-name

For example:

npm update eslint

Remove

npm uninstall package-name

For example:

npm uninstall commitizen