Guides  ›  Config  ›  package.json ← PREV NEXT →

package.json

Add these fields to your package.json:

{
  "scripts": {
    "start": "node app.js",
    "dev": "NODE_ENV=development node --watch app.js",
    "test": "node --test",
    "build": "ndk build"
  },
  "imports": {
    "#*": "./*"
  }
}

The import mapping lets you use require('#env.js') and require('#app/config/routes.js').

Install packages with npm to add dependencies.

Next: env.js →

Tools for business systems.