From 069fdb352b4ad8032b33de4eb29e5f3b680670eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Lenon?= Date: Sat, 6 Jan 2024 21:24:13 +0000 Subject: [PATCH] just process exit (#205) ## Proposed changes Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue. ## Types of changes What types of changes does your code introduce? _Put an `x` in the boxes that apply_ - [ ] Bugfix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) ## Checklist _Put an `x` in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code._ - [ ] I have read the [CONTRIBUTING](https://github.com/AthennaIO/Core/blob/master/CONTRIBUTING.md) documentation - [ ] Lint and unit tests pass locally with my changes - [ ] I have added tests that prove my fix is effective or that my feature works. - [ ] I have added necessary documentation (if appropriate) ## Further comments If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc... --- package-lock.json | 4 ++-- package.json | 2 +- src/repl/ReplImpl.ts | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index ada2985..57deb34 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@athenna/core", - "version": "4.19.0", + "version": "4.20.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@athenna/core", - "version": "4.19.0", + "version": "4.20.0" "license": "MIT", "dependencies": { "pretty-repl": "^3.1.2", diff --git a/package.json b/package.json index 16cbad2..bb4b9fb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@athenna/core", - "version": "4.19.0", + "version": "4.20.0", "description": "The plug and play Node.js framework.", "license": "MIT", "author": "João Lenon ", diff --git a/src/repl/ReplImpl.ts b/src/repl/ReplImpl.ts index 6d17876..94856e2 100644 --- a/src/repl/ReplImpl.ts +++ b/src/repl/ReplImpl.ts @@ -7,7 +7,6 @@ * file that was distributed with this source code. */ -import { LoadHelper } from '#src/helpers/LoadHelper' import type { Command } from '#src/repl/helpers/Command' import type { REPLServer, ReplOptions } from 'node:repl' import { Is, Module, Options, String } from '@athenna/common' @@ -47,7 +46,6 @@ export class ReplImpl { */ public shutdownProviders() { this.session?.on('exit', async () => { - await LoadHelper.shutdownProviders() process.exit(0) })