diff --git a/package-lock.json b/package-lock.json index 9453b67..223ca1c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@athenna/core", - "version": "4.31.0", + "version": "4.32.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@athenna/core", - "version": "4.31.0", + "version": "4.32.0", "license": "MIT", "dependencies": { "pretty-repl": "^3.1.2", diff --git a/package.json b/package.json index ea08755..4dc1fe3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@athenna/core", - "version": "4.31.0", + "version": "4.32.0", "description": "One foundation for multiple applications.", "license": "MIT", "author": "João Lenon ", diff --git a/src/commands/InstallCommand.ts b/src/commands/InstallCommand.ts index a9403ea..725ad23 100644 --- a/src/commands/InstallCommand.ts +++ b/src/commands/InstallCommand.ts @@ -12,7 +12,7 @@ import { Argument, BaseCommand, Option } from '@athenna/artisan' export class InstallCommand extends BaseCommand { @Argument({ - signature: '<...libraries>', + signature: 'libraries...', description: 'The libraries to install in your project.' }) public libraries: string[] @@ -52,6 +52,11 @@ export class InstallCommand extends BaseCommand { }) }) + console.log() + this.logger.success( + `Successfully installed ${this.libraries.join(', ')} libraries` + ) + for (const library of this.libraries) { const path = Path.nodeModules(`${library}/configurer/index.js`) @@ -59,17 +64,11 @@ export class InstallCommand extends BaseCommand { continue } - task.addPromise(`Configuring ${library}`, async () => { - const Configurer = await Module.getFrom(path) + this.logger.simple(`\n({bold,green} [ CONFIGURING ${library} ])\n`) - return new Configurer().setPath(path).configure() - }) - } + const Configurer = await Module.getFrom(path) - await task.run() - - this.logger.success( - `Successfully installed ${this.libraries.join(', ')} libraries` - ) + await new Configurer().setPath(path).configure() + } } }