I am facing an issue with my npm package.json script that needs to be executed only when the dist folder is not present.
Here is the snippet from my package.json:
"scripts": {
"predev": "! test dist && webpack --config=webpack.dll.config.js
}
When I try to run this script, npm throws an error saying '! test dist' is invalid. How can I resolve this issue?
Thank you for any help or suggestions!