Mark Wade
Mark Wade

Reputation: 527

Node.js equivalent of Yarn command

I'm going through js-stack-from-scratch using Node, not Yarn.

In the PM2 (Process Manager) section we are to add "prod:build": "rimraf lib && babel src -d lib --ignore .test.js" to the "scripts" section of package.json, and then to run yarn prod:build. I need the Node equivalent please.

(I got around the previous Nodemon section by substituting dev:start for dev-start but this doesn't work for prod:build, presumably because this time it's on the command line)

Upvotes: 0

Views: 165

Answers (1)

Ioan
Ioan

Reputation: 5187

npm run prod:build should do the trick.

Upvotes: 2

Related Questions