From b60c3166ef6412b97db9aeb39f88c1fcd81740de Mon Sep 17 00:00:00 2001 From: Sylvester Aswin Stanley Date: Fri, 19 Mar 2021 12:02:45 +0100 Subject: [PATCH] use 1 for exit --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 120351a..bf631b0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -72,7 +72,7 @@ function utilityPlugin(config?: PluginConfig) { if (moduleName && !fs.existsSync(modulePath)) { // eslint-disable-next-line no-console debug(`Module => ${moduleName} : is not supported`); - process.exit(-1); + process.exit(1); } // eslint-disable-next-line @typescript-eslint/no-var-requires const moduleFunction = require(modulePath).default;