Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Latest commit

 

History

History
85 lines (55 loc) · 1.18 KB

README.md

File metadata and controls

85 lines (55 loc) · 1.18 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 web-push-notifications in core package:

  1. lerna exec --scope @deriv/core -- npm update web-push-notifications
  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