Skip to content

Commit

Permalink
Exclude download-git-repo from forbidden words
Browse files Browse the repository at this point in the history
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 ad7eb60. Required for DefinitelyTyped/DefinitelyTyped#56874.
  • Loading branch information
LinqLover committed Oct 29, 2021
1 parent 6a0d0a8 commit 3361d39
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`);
Expand Down

0 comments on commit 3361d39

Please sign in to comment.