mysticatea / cpx

A cli tool to watch and copy file globs.
MIT License
524 stars 36 forks source link

Doesn't work with yarn and npm scripts #58

Open RyanPWalker opened 4 years ago

RyanPWalker commented 4 years ago

Running yarn build with the following npm script does absolutely nothing, with or without the escaped double quotes.

"scripts": {
    "build": "rm -rf dist && NODE_ENV=production webpack -p --config webpack.config.js && cpx \"/dist/*.js\" \"/static/\"",
}

Node 12.13.0 cpx 1.5.0 yarn 1.19.1 latest MacOS

MalcolmDwyer commented 4 years ago

Are you sure you want /dist and /static ... those paths would point to the root of your file system, right?

Try this: ... && cpx \"dist/*.js\" \"static/\"",