I have this in package.json
:
"scripts": {
"build": "browserify app/components/main.js -o build/js/app.js -d"
}
When I run this command from shell, it executes and creates the file just fine.
But when I run npm build
, nothing happens. What am I doing wrong and how to fix it?