title: npm package.json - remove directory if it exists
body: <p>I am using the following logic within my package.json file for a webpack project:</p>
  
  <pre><code>  "scripts": {
      "dev": "webpack --mode development",
      "build": "webpack --mode production ",
      "clean": "rm -r deploy",
      "start": "npm run clean &amp;&amp; npm run dev &amp;&amp; webpack-dev-server --mode development"
    },
  </code></pre>
  
  <p>If my <code>deploy</code> directory does not exist, and I run <code>npm start</code>, I get the following message in my terminal:</p>
  
  <pre><code>rm: cannot remove 'deploy': No such file or directory
  </code></pre>
  
  <p>Is there a way to check if the directory exist first? And if does, then just skip the clean process?</p>