Using yarn, I have added few additional libraries ( let say jquery).
yarn add jquery
This will be added by default to dependencies block in package.json
but I want to change its location from dependencies to the devDependencies block.
What I currently do is:
- remove library
yarn remove jquery
- then add again with -D
yarn add jquery -D
So I am looking for any command in yarn
or npm
which directly changes the library location from dependencies to the devDependencies block without uninstalling and reinstalling the same.