From b54c2ef08a7b9e61068fd6a3faeccd3e4e7a6a09 Mon Sep 17 00:00:00 2001 From: "S. Amir Mohammad Najafi" Date: Tue, 19 Dec 2023 15:52:20 +0330 Subject: [PATCH] fix(logger): define package scope --- packages/logger/src/define-package.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/logger/src/define-package.ts b/packages/logger/src/define-package.ts index 54d133b..1ccee69 100644 --- a/packages/logger/src/define-package.ts +++ b/packages/logger/src/define-package.ts @@ -24,7 +24,7 @@ export const definePackage = (packageName: string, version: string) => { throw new Error('duplicate_package_defined'); } - if (packageName.indexOf('@alwatr') === -1) { + if (packageName.indexOf('@alwatr') !== -1) { logger.accident('define-package', 'package_name_starts_with_alwatr_scope', { packageName, });