simple-component-library icon indicating copy to clipboard operation
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__"

Open webrolls opened this issue 6 years ago • 2 comments

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

webrolls avatar Sep 14 '18 23:09 webrolls

same on windows not working

IntelligaiaVivek avatar Jun 07 '21 10:06 IntelligaiaVivek

on windows, replace 'rm' with 'del'

Christelle74 avatar Nov 07 '22 10:11 Christelle74