diff --git a/package-lock.json b/package-lock.json index b241b94..20866c5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,23 +1,23 @@ { "name": "@athenna/core", - "version": "5.0.0", + "version": "5.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@athenna/core", - "version": "5.0.0", + "version": "5.1.0", "license": "MIT", "dependencies": { "pretty-repl": "^3.1.2", "semver": "^7.6.3" }, "devDependencies": { - "@athenna/artisan": "^5.0.0", + "@athenna/artisan": "^5.1.0", "@athenna/common": "^5.0.0", "@athenna/config": "^5.0.0", - "@athenna/cron": "^5.0.0", - "@athenna/http": "^5.0.0", + "@athenna/cron": "^5.1.0", + "@athenna/http": "^5.1.0", "@athenna/ioc": "^5.0.0", "@athenna/logger": "^5.0.0", "@athenna/test": "^5.0.0", @@ -74,9 +74,9 @@ "license": "MIT" }, "node_modules/@athenna/artisan": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@athenna/artisan/-/artisan-5.0.0.tgz", - "integrity": "sha512-qR1viT6sr51cVuuXn9vPCxUDNFRJYiaFUhFEDxfvPQMGh+fLk/8bxJZdfOgr3gokmYSCo0X5p78VZ4nyay0HvQ==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@athenna/artisan/-/artisan-5.1.0.tgz", + "integrity": "sha512-5x2+BmxLuosH+8OX9uPZwk/M8MBXJBK5GLUHuvY0JotargfvWhu/83sWiJinBBXAnoXgu6k+WMZlDlJ9YuhIKQ==", "dev": true, "license": "MIT", "dependencies": { @@ -148,9 +148,9 @@ } }, "node_modules/@athenna/cron": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@athenna/cron/-/cron-5.0.0.tgz", - "integrity": "sha512-CFgwUfUbBNmOqMLrijqO6xJv3mDjab2EYD1KrIqWrhHrk9wO3+OEPT6pxqkn+l4eqRYEzqZsQrjZdYGP79y7VQ==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@athenna/cron/-/cron-5.1.0.tgz", + "integrity": "sha512-y4XyzaVKhD9l4OMS9QpJwklx7ziG259DjAklCenBbS6mkfamCM7AWqC1NE9Lys+dRx0Pmyr5z3AwT72PKobuwA==", "dev": true, "license": "MIT", "dependencies": { @@ -161,9 +161,9 @@ } }, "node_modules/@athenna/http": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@athenna/http/-/http-5.0.0.tgz", - "integrity": "sha512-d+QY0ofCH3uNG+SAQ7VhD+gDAi8aJM4ArP+a0cGMJkbxOtSHUIoMQ9Q1E2MuiQrdDBb5SH92plv15XTLKnC1VA==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@athenna/http/-/http-5.1.0.tgz", + "integrity": "sha512-H+yu/DMaijQu/tJdd8jHZMW2ZRcQ7AJqbMxvwVnvGAla6YN4hcrQeDRBb3RY+edT9Ka7jpD2psG7N7s9UUoBYg==", "dev": true, "license": "MIT", "engines": { @@ -1566,9 +1566,9 @@ "license": "MIT" }, "node_modules/@types/chai": { - "version": "4.3.17", - "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.17.tgz", - "integrity": "sha512-zmZ21EWzR71B4Sscphjief5djsLre50M6lI622OSySTmn9DB3j+C3kWroHfBQWXbOBwbgg/M8CG/hUxDLIloow==", + "version": "4.3.18", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.18.tgz", + "integrity": "sha512-2UfJzigyNa8kYTKn7o4hNMPphkxtu4WTJyobK3m4FBpyj7EK5xgtPcOtxLm7Dznk/Qxr0QXn+gQbkg7mCZKdfg==", "dev": true, "license": "MIT" }, @@ -4745,9 +4745,9 @@ } }, "node_modules/emoji-regex": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.3.0.tgz", - "integrity": "sha512-QpLs9D9v9kArv4lfDEgg1X/gN5XLnf/A6l9cs8SPZLRZR3ZkY9+kwIQTxm+fsSej5UMYGE8fdoaZVIBlqG0XTw==", + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.4.0.tgz", + "integrity": "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==", "dev": true, "license": "MIT" }, @@ -5178,9 +5178,9 @@ } }, "node_modules/eslint-module-utils": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.1.tgz", - "integrity": "sha512-rXDXR3h7cs7dy9RNpUlQf80nX31XWJEyGq1tRMo+6GsO5VmTe4UTwtmonAD4ZkAsrfMVDA2wlGJ3790Ys+D49Q==", + "version": "2.8.2", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.2.tgz", + "integrity": "sha512-3XnC5fDyc8M4J2E8pt8pmSVRX2M+5yWMCfI/kDZwauQeFgzQOuhcRBFKjTeJagqgk4sFKxe1mvNVnaWwImx/Tg==", "dev": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 678c2ad..e67127d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@athenna/core", - "version": "5.0.0", + "version": "5.1.0", "description": "One foundation for multiple applications.", "license": "MIT", "author": "João Lenon ", @@ -80,11 +80,11 @@ "semver": "^7.6.3" }, "devDependencies": { - "@athenna/artisan": "^5.0.0", + "@athenna/artisan": "^5.1.0", "@athenna/common": "^5.0.0", "@athenna/config": "^5.0.0", - "@athenna/cron": "^5.0.0", - "@athenna/http": "^5.0.0", + "@athenna/cron": "^5.1.0", + "@athenna/http": "^5.1.0", "@athenna/ioc": "^5.0.0", "@athenna/logger": "^5.0.0", "@athenna/test": "^5.0.0", diff --git a/src/commands/BuildCommand.ts b/src/commands/BuildCommand.ts index dbd65f9..d1c5443 100644 --- a/src/commands/BuildCommand.ts +++ b/src/commands/BuildCommand.ts @@ -73,9 +73,7 @@ export class BuildCommand extends BaseCommand { .add(`cd ${outDirName}`) .add('npm ci --omit=dev') .add('Define your production environment variables') - .add( - `node ${Color.yellow.bold(`${parse(Path.bootstrap()).name}/main.js`)}` - ) + .add(`node ${Color.yellow.bold(`${parse(Path.bin()).name}/main.js`)}`) .render() } diff --git a/src/commands/ReplCommand.ts b/src/commands/ReplCommand.ts index a420132..da858f9 100644 --- a/src/commands/ReplCommand.ts +++ b/src/commands/ReplCommand.ts @@ -22,7 +22,7 @@ export class ReplCommand extends BaseCommand { public async handle(): Promise { const entrypoint = Config.get( 'rc.commands.repl.entrypoint', - Path.bootstrap(`repl.${Path.ext()}`) + Path.bin(`repl.${Path.ext()}`) ) await Module.resolve(entrypoint, Config.get('rc.parentURL')) diff --git a/src/commands/ServeCommand.ts b/src/commands/ServeCommand.ts index 89c71ea..49c5686 100644 --- a/src/commands/ServeCommand.ts +++ b/src/commands/ServeCommand.ts @@ -31,7 +31,7 @@ export class ServeCommand extends BaseCommand { public async handle(): Promise { const entrypoint = Config.get( 'rc.commands.serve.entrypoint', - Path.bootstrap(`main.${Path.ext()}`) + Path.bin(`main.${Path.ext()}`) ) if (this.watch) { diff --git a/src/commands/TestCommand.ts b/src/commands/TestCommand.ts index 72d5d42..5234a41 100644 --- a/src/commands/TestCommand.ts +++ b/src/commands/TestCommand.ts @@ -42,7 +42,7 @@ export class TestCommand extends BaseCommand { public async handle(): Promise { const entrypoint = Config.get( 'rc.commands.test.entrypoint', - Path.bootstrap(`test.${Path.ext()}`) + Path.bin(`test.${Path.ext()}`) ) process.argv.splice(2, 1) diff --git a/src/testing/BaseConsoleTest.ts b/src/testing/BaseConsoleTest.ts index 913012b..08707a4 100644 --- a/src/testing/BaseConsoleTest.ts +++ b/src/testing/BaseConsoleTest.ts @@ -15,14 +15,14 @@ import { TestCommand } from '@athenna/artisan/testing/plugins' export class BaseConsoleTest { public ignite: Ignite public igniteOptions: IgniteOptions = {} - public artisanPath: string = Path.bootstrap(`artisan.${Path.ext()}`) + public artisanPath: string = Path.bin(`artisan.${Path.ext()}`) @BeforeAll() public async baseBeforeAll() { TestCommand.setArtisanPath(this.artisanPath) this.ignite = await new Ignite().load( - Path.toHref(Path.bootstrap(`test.${Path.ext()}`)), + Path.toHref(Path.bin(`test.${Path.ext()}`)), this.getIgniteOptions() ) } diff --git a/src/testing/BaseHttpTest.ts b/src/testing/BaseHttpTest.ts index 468df5f..6f42e9b 100644 --- a/src/testing/BaseHttpTest.ts +++ b/src/testing/BaseHttpTest.ts @@ -21,7 +21,7 @@ export class BaseHttpTest { @BeforeAll() public async baseBeforeAll() { this.ignite = await new Ignite().load( - Path.toHref(Path.bootstrap(`test.${Path.ext()}`)), + Path.toHref(Path.bin(`test.${Path.ext()}`)), this.getIgniteOptions() )