390885 (23) [Avatar] Offline
On page 57, it states that add this line into package.json
./node_modules/.bin/babel js/script.jsx ?o js/script.js

But it turns out that there is no need to use relative path on my machine with OS X.
babel js/script.jsx ?o js/script.js

is enough.
Azat Mardan (41) [Avatar] Offline
Good for you, but this might not be the case for others. It depends on the path to node_modules/.bin in your bash/zsh.

If you have something like this in your profile, then no need:

if [ -d "$PWD/node_modules/.bin" ]; then

But my full path command is more robust since it will work anywhere!


Azat, author of React Quickly