From 3361d394e2d0db6ead310840e343a45f7dc8f6d2 Mon Sep 17 00:00:00 2001 From: Christoph Thiede <38782922+LinqLover@users.noreply.github.com> Date: Fri, 29 Oct 2021 23:11:59 +0200 Subject: [PATCH] Exclude `download-git-repo` from forbidden words This package already exists on npm, so if I understand the matter correctly, it should be allowed here, too: https://www.npmjs.com/package/download-git-repo Complements ad7eb6011049ed560053864df9040576d9d1180a. Required for https://github.com/DefinitelyTyped/DefinitelyTyped/pull/56874. --- src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.ts b/src/index.ts index 2b57b51..03be4f9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -239,6 +239,7 @@ function assertPathIsNotBanned(dirPath: string) { if (/(^|\W)download($|\W)/.test(basedir) && basedir !== "download" && basedir !== "downloadjs" && + basedir !== "download-git-repo" && basedir !== "s3-download-stream") { // Since npm won't release their banned-words list, we'll have to manually add to this list. throw new Error(`${dirPath}: Contains the word 'download', which is banned by npm.`);