vasansr / pro-mern-stack

Code Listing for the book Pro MERN Stack
http://www.apress.com/in/book/9781484226520
342 stars 157 forks source link

Multiple typos in npm scripts #11

Open KhalilMohammad opened 7 years ago

KhalilMohammad commented 7 years ago

I am on windows 10 64 bit machine. I am not running any vm.

These scripts work "compile": "babel src --presets react --out-dir static", "watch": "babel src --presets react --out-dir static -–watch" These do not work "compile": "babel src -presets react -out-dir static", "watch": "babel src -presets react -out-dir static –watch"

I am running npm commands at package.json directory. npm run compile npm run watch

KhalilMohammad commented 7 years ago

I think it is a typo

Listting 2.6 "scripts": { "compile": "babel src –presets react –out-dir static", "watch": "babel src –presets react –out-dir static –watch", "test": "echo \"Error: no test specified\" && exit 1" }

Listing 2.7 "scripts": { "compile": "babel src --presets react,es2015 --out-dir static", "watch": "babel src --presets react,es2015 --out-dir static --watch", "test": "echo \"Error: no test specified\" && exit 1" }