'how to write build script Command for Node Js

[My code] example[1] : https://i.stack.imgur.com/57ijx.png

 "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "node server.js",
    "build": "mkdir dist && node server.js",
    "dev": "nodemon server.js"
  },


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source