Skip to content

Commit 7e08071

Browse files
committed
chore(npm): update dependencies
1 parent 2e9581f commit 7e08071

File tree

19 files changed

+692
-478
lines changed

19 files changed

+692
-478
lines changed

package-lock.json

Lines changed: 633 additions & 430 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@athenna/artisan",
3-
"version": "5.4.0",
3+
"version": "5.5.0",
44
"description": "The Athenna CLI application. Built on top of commander and inspired in @adonisjs/ace.",
55
"license": "MIT",
66
"author": "João Lenon <lenon@athenna.io>",
@@ -76,15 +76,15 @@
7676
"ora": "^6.3.1"
7777
},
7878
"devDependencies": {
79-
"@athenna/common": "^5.3.0",
80-
"@athenna/config": "^5.1.0",
81-
"@athenna/ioc": "^5.0.0",
82-
"@athenna/logger": "^5.1.0",
83-
"@athenna/test": "^5.2.0",
79+
"@athenna/common": "^5.7.0",
80+
"@athenna/config": "^5.3.0",
81+
"@athenna/ioc": "^5.1.0",
82+
"@athenna/logger": "^5.2.0",
83+
"@athenna/test": "^5.3.0",
8484
"@athenna/tsconfig": "^5.0.0",
85-
"@athenna/view": "^5.1.0",
86-
"@typescript-eslint/eslint-plugin": "^7.18.0",
87-
"@typescript-eslint/parser": "^7.18.0",
85+
"@athenna/view": "^5.2.0",
86+
"@typescript-eslint/eslint-plugin": "^8.21.0",
87+
"@typescript-eslint/parser": "^8.21.0",
8888
"commitizen": "^4.3.1",
8989
"cz-conventional-changelog": "^3.3.0",
9090
"eslint": "^8.57.1",

src/artisan/BaseCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
*/
99

1010
import { Rc } from '@athenna/config'
11-
import { Color } from '@athenna/common'
1211
import { Npm } from '#src/helpers/command/Npm'
12+
import { Color, Macroable } from '@athenna/common'
1313
import { Prompt } from '#src/helpers/command/Prompt'
1414
import { Logger } from '#src/helpers/command/Logger'
1515
import { Annotation } from '#src/helpers/Annotation'
1616
import type { Commander } from '#src/artisan/Commander'
1717
import { Generator } from '#src/helpers/command/Generator'
1818
import { CommanderHandler } from '#src/handlers/CommanderHandler'
1919

20-
export abstract class BaseCommand {
20+
export abstract class BaseCommand extends Macroable {
2121
/**
2222
* The command signature/name. This option will
2323
* define how the command should be called.

src/commands/TemplateCustomizeCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99

1010
import { BaseCommand } from '#src'
11-
import { Path, Exec, File } from '@athenna/common'
11+
import { Path, File } from '@athenna/common'
1212
import { resolve, relative, isAbsolute } from 'node:path'
1313

1414
export class TemplateCustomizeCommand extends BaseCommand {
@@ -26,7 +26,7 @@ export class TemplateCustomizeCommand extends BaseCommand {
2626
const templates: any = {}
2727
const paths = Config.get('rc.templates')
2828

29-
await Exec.concurrently(Object.keys(paths), async key => {
29+
await Object.keys(paths).athenna.concurrently(async key => {
3030
let path = paths[key]
3131

3232
if (!isAbsolute(path)) {

src/handlers/ConsoleExceptionHandler.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ export class ConsoleExceptionHandler {
1616
* The exception handler of all Artisan commands.
1717
*/
1818
public async handle(error: any): Promise<void> {
19-
error.code = String.toSnakeCase(
20-
`${error.code}` || `${error.name}`
21-
).toUpperCase()
19+
if (error.code === undefined) {
20+
error.code = error.name || 'E_INTERNAL_SERVER'
21+
}
22+
23+
error.code = String.toConstantCase(error.code)
2224

2325
const isException = Is.Exception(error)
2426
const isDebugMode = Config.get('app.debug', true)

src/helpers/Action.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
*/
99

1010
import { Log } from '@athenna/logger'
11-
import { Color } from '@athenna/common'
11+
import { Color, Macroable } from '@athenna/common'
1212

13-
export class Action {
13+
export class Action extends Macroable {
1414
/**
1515
* The main action that is being executed.
1616
*
@@ -30,6 +30,8 @@ export class Action {
3030
private biggestAction: string
3131

3232
public constructor(action: string) {
33+
super()
34+
3335
this.action = action
3436
this.biggestAction = this.getBiggestAction(action)
3537
}

src/helpers/Formatter.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
*/
99

1010
import { Command, type Help } from 'commander'
11-
import { Color, Options } from '@athenna/common'
11+
import { Color, Options, Macroable } from '@athenna/common'
1212

13-
export class Formatter {
13+
export class Formatter extends Macroable {
1414
public static builder(cmd: Command, help: Help) {
1515
return new Formatter(cmd, help)
1616
}
@@ -34,6 +34,8 @@ export class Formatter {
3434
}
3535

3636
public constructor(cmd: Command, help: Help) {
37+
super()
38+
3739
this.cmd = cmd
3840
this.help = help
3941

src/helpers/Instruction.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ import boxes from 'cli-boxes'
1111
import CliTable3 from 'cli-table3'
1212

1313
import { Table } from '#src/helpers/Table'
14+
import { Macroable } from '@athenna/common'
1415

15-
export class Instruction {
16+
export class Instruction extends Macroable {
1617
/**
1718
* The head of the instruction.
1819
*/

src/helpers/Sticker.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ import boxes from 'cli-boxes'
1111
import CliTable3 from 'cli-table3'
1212

1313
import { Table } from '#src/helpers/Table'
14+
import { Macroable } from '@athenna/common'
1415

15-
export class Sticker {
16+
export class Sticker extends Macroable {
1617
/**
1718
* The head of the instruction.
1819
*/

src/helpers/Table.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
import CliTable from 'cli-table3'
1111

1212
import { Log } from '@athenna/logger'
13-
import { Color } from '@athenna/common'
13+
import { Color, Macroable } from '@athenna/common'
1414
import type { TableRow } from '#src/types/TableRow'
1515

16-
export class Table {
16+
export class Table extends Macroable {
1717
/**
1818
* The state of the table. This property will
1919
* have the head and rows of your table.

0 commit comments

Comments
 (0)