title: command which relocate a library from dependencies to devDependencies block in package.json?
body: <p>using yarn, I have added few additional library ( let say jquery)</p>
  
  <p><code>yarn add jquery</code></p>
  
  <p>this will be added by default to <strong><em>dependencies</em></strong> block in <em>package.json</em> </p>
  
  <p>but I want to change its location from <strong><em>dependencies</em></strong> to <strong><em>devDependencies</em></strong> block.</p>
  
  <p>what currently I do is </p>
  
  <ul>
  <li>remove library</li>
  </ul>
  
  <p><code>yarn remove jquery</code></p>
  
  <ul>
  <li>then add again with -D</li>
  </ul>
  
  <p><code>yarn add jquery -D</code></p>
  
  <p>So I am looking for any command in <code>yarn</code> or <code>npm</code> which directly changes the library location from <em>dependencies</em> to <em>devDependencies</em> block without uninstalling and reinstall the same.</p>