Skip to content

Commit

Permalink
fix pkg config
Browse files Browse the repository at this point in the history
  • Loading branch information
abdrahmanES1 committed Nov 11, 2023
1 parent dd68928 commit cecfc17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "express-api-initializer",
"version": "0.0.2",
"bin": {
"express-initializer": "./dist/src/index.js"
"express-initializer": "dist/src/index.js"
},
"description": "",
"main": "index.js",
Expand Down Expand Up @@ -31,5 +31,8 @@
"@types/node": "^20.9.0",
"typescript": "^5.2.2"
},
"repository": "https://github.com/abdrahmanES1/express-api-initializer.git"
"repository": {
"type": "git",
"url": "git+https://github.com/abdrahmanES1/express-api-initializer.git"
}
}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ program.command('new')
},
}).then(async (value) => {
if (value.id === 0) {
await createApp(appName, options, () => { })
await createApp(`${process.cwd()}/${appName}`, options, () => { })
.then(() => {
console.log(chalk.blue(`cd ${appName}`));
console.log(chalk.blue(`npm install express express-async-handler`));
Expand Down

0 comments on commit cecfc17

Please sign in to comment.