using yarn, I have added few additional library ( 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 devDependencies block.
what currently I 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 devDependencies block without uninstalling and reinstall the same.