Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

"build": "rm -rf dist && NODE_ENV=production babel src/lib --out-dir dist --copy-files --ignore __tests__,spec.js,test.js,__snapshots__" #3

Open
webrolls opened this issue Sep 14, 2018 · 2 comments

Comments

@webrolls
Copy link

webrolls commented Sep 14, 2018

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

@IntelligaiaVivek
Copy link

same on windows not working

@Christelle74
Copy link

on windows, replace 'rm' with 'del'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants