From 54b76a68a143f77efa851ab52ff29398f847c7d5 Mon Sep 17 00:00:00 2001 From: Shusui MOYATANI Date: Sat, 4 Mar 2023 13:08:40 +0900 Subject: [PATCH] fix --- scripts/checkLicense.mjs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/checkLicense.mjs b/scripts/checkLicense.mjs index 17919ae..df0ae05 100644 --- a/scripts/checkLicense.mjs +++ b/scripts/checkLicense.mjs @@ -28,12 +28,16 @@ export default async function() { let ok = true; - const ignorePackageName = packageInfo.name; + const ignorePackageNames = [ + packageInfo.name, + 'nostr-tools', // nostr-tools is licensed under public domain + ]; for (const [name, info] of Object.entries(packages)) { const acceptable = acceptableLicenses.includes(info.licenses); if (acceptable) continue; - if (name.startsWith(`${ignorePackageName}@`)) continue; + if (ignorePackageNames.some((ignorePackageName) => name.startsWith(`${ignorePackageName}@`))) + continue; console.error(name); ok = false;