simple-component-library
simple-component-library copied to clipboard
"build": "rm -rf dist && NODE_ENV=production babel src/lib --out-dir dist --copy-files --ignore __tests__,spec.js,test.js,__snapshots__"
your build command from package.json is not working for me
Command:
"build": "rm -rf dist && NODE_ENV=production babel src/lib --out-dir dist --copy-files --ignore tests,spec.js,test.js,snapshots"
Error I am getting is as follow
$ sudo npm run build
[email protected] build /Users/kkhan/projects/react/whales/shared-react-component-example rm -rf dist && NODE_ENV=production babel src/lib --out-dir dist --copy-files --ignore tests, spec.js, test.js, snapshots
spec.js, doesn't exist. test.js, doesn't exist. snapshots doesn't exist
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: rm -rf dist && NODE_ENV=production babel src/lib --out-dir dist --copy-files --ignore __tests__, spec.js, test.js, __snapshots__
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in: npm ERR! /Users/kkhan/.npm/_logs/2018-09-14T23_27_54_563Z-debug.log
Please suggest
same on windows not working
on windows, replace 'rm' with 'del'