diff --git a/package.json b/package.json index ca49bb1..75b4d64 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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" + } } diff --git a/src/index.ts b/src/index.ts index bc4e3c6..0ae0783 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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`));