Skip to content

Commit

Permalink
feat(configurer): update templates
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Dec 10, 2023
1 parent a80b70b commit 0cfb08b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
20 changes: 20 additions & 0 deletions configurer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,26 @@ export default class DatabaseConfigurer extends BaseConfigurer {
.save()
})

task.addPromise('Update templates of .athennarc.json', () => {
return this.rc
.setTo(
'templates',
'model',
'node_modules/@athenna/database/templates/model.edge'
)
.setTo(
'templates',
'seeder',
'node_modules/@athenna/database/templates/seeder.edge'
)
.setTo(
'templates',
'migration',
'node_modules/@athenna/database/templates/migration.edge'
)
.save()
})

task.addPromise('Update providers of .athennarc.json', () => {
return this.rc
.pushTo('providers', '@athenna/database/providers/DatabaseProvider')
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@athenna/database",
"version": "4.2.0",
"version": "4.3.0",
"description": "The Athenna database handler for SQL/NoSQL.",
"license": "MIT",
"author": "João Lenon <lenon@athenna.io>",
Expand Down

0 comments on commit 0cfb08b

Please sign in to comment.