Skip to content

Commit

Permalink
feat(artisan): update artisan version
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Sep 5, 2022
1 parent c0d6d66 commit 79c8d07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
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": "1.0.3",
"version": "1.0.4",
"description": "The Athenna database handler for SQL/NoSQL. Built on top of TypeORM.",
"license": "MIT",
"author": "João Lenon <lenon@athenna.io>",
Expand Down
7 changes: 4 additions & 3 deletions src/Helpers/DatabaseCommandsLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ export class DatabaseCommandsLoader {
* @return {any[]}
*/
static loadTemplates() {
return new Folder(
join(Module.createDirname(import.meta.url), '..', '..', 'templates'),
).loadSync().files
const dirname = Module.createDirname(import.meta.url)
const templatesPath = join(dirname, '..', '..', 'templates')

return new Folder(templatesPath).loadSync().getFilesByPattern('**/*.ejs')
}
}

0 comments on commit 79c8d07

Please sign in to comment.