title: how to write npm script to copy directory
body: <p>I am trying to write npm script to copy entire directory to another directory.
  I tried single file work(cp) , list directory work (dir), but copy directory does not work(cpdir)</p>
  
  <p>npm ERR! code ELIFECYCLE
  npm ERR! errno 1
  npm ERR! app@1.0.1 cpdir: <code>copy --r dist  distnew1</code>
  npm ERR! Exit status 1</p>
  
  <pre><code>  "scripts": {
          "ng": "ng",
          "start": "ng serve --port 4201",
          "build": "ng build",
          "test": "ng test",
          "lint": "ng lint",
          "e2e": "ng e2e",
          "cp" : "copy  test.txt  test1.txt",
          "dir" : "dir dist"
          "cpdir" : "copy  -r dist  distnew"
  
      },
  </code></pre>