diff --git a/README.md b/README.md index 7043a18..7922732 100644 --- a/README.md +++ b/README.md @@ -100,12 +100,17 @@ npm install . ├── .husky ├── cli +│ ├── _ +│ │ ├── deleteCrud.js +│ │ ├── generateEmptyCrud.js +│ │ ├── generateMinimalCrud.js +│ │ └── helpers.js │ ├── generateCrud.js │ └── index.js ├── src │ ├── controllers │ │ ├── auth.controller.js -│ │ └── user.ontroller.js +│ │ └── user.controller.js │ ├── middlewares │ │ ├── multer.js │ │ └── verify-token.js diff --git a/cli/index.js b/cli/index.js index 6a5a812..bad46c0 100644 --- a/cli/index.js +++ b/cli/index.js @@ -1,3 +1,4 @@ +#!/usr/bin/env node /* -------------------------------------------------------------------------- */ /* DEPENDENCIES */ /* -------------------------------------------------------------------------- */ diff --git a/package.json b/package.json index 10bd881..2923564 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,9 @@ "type": "git", "url": "git+https://github.com/fadhlaouir/express-node-starter.git" }, + "bin": { + "express-node-starter": "./cli/index.js" + }, "keywords": [ "node.js", "express.js", @@ -31,9 +34,6 @@ "mongodb", "restful-api" ], - "bin": { - "express-node-starter": "server.js" - }, "dependencies": { "async": "^3.2.3", "babel-eslint": "^10.1.0", @@ -75,4 +75,4 @@ "node": ">=14.16.0 <=20.11.0", "npm": ">=6.14.11 <=10.2.4" } -} +} \ No newline at end of file