Skip to content

Commit

Permalink
fix(configurer): remove npm install logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Dec 10, 2023
1 parent 8a77673 commit b15cfb9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
13 changes: 13 additions & 0 deletions configurer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,5 +175,18 @@ export default class DatabaseConfigurer extends BaseConfigurer {
this.logger.success(
'Successfully configured ({dim,yellow} @athenna/database) library'
)

const libraries = {
mysql: 'knex mysql2',
postgres: 'knex pg',
sqlite: 'knex better-sqlite3',
mongo: 'mongoose'
}

this.logger
.instruction()
.head('Run following commands to get started:')
.add(`npm install ${libraries[connection]}`)
.render()
}
}
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@athenna/database",
"version": "4.4.3",
"version": "4.5.0",
"description": "The Athenna database handler for SQL/NoSQL.",
"license": "MIT",
"author": "João Lenon <lenon@athenna.io>",
Expand Down Expand Up @@ -73,7 +73,7 @@
"fast-deep-equal": "^3.1.3"
},
"devDependencies": {
"@athenna/artisan": "^4.18.0",
"@athenna/artisan": "^4.19.0",
"@athenna/common": "^4.22.0",
"@athenna/config": "^4.8.0",
"@athenna/ioc": "^4.9.0",
Expand Down

0 comments on commit b15cfb9

Please sign in to comment.