Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit 7e65c8e

Browse files
Add 'download-git-repo' to allowed names in npm banned types
The assertion is not a rule, so it cannot be bypassed in DT config. Required for: DefinitelyTyped/DefinitelyTyped#56874 Thanks! /cc @LinqLover
1 parent 7506ca9 commit 7e65c8e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/index.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,7 @@ function assertPathIsInDefinitelyTyped(dirPath: string): void {
237237
function assertPathIsNotBanned(dirPath: string) {
238238
const basedir = basename(dirPath);
239239
if (/(^|\W)download($|\W)/.test(basedir) &&
240-
basedir !== "download" &&
241-
basedir !== "downloadjs" &&
242-
basedir !== "s3-download-stream") {
240+
!["download", "downloadjs", "s3-download-stream", "download-git-repo"].includes(basedir)) {
243241
// Since npm won't release their banned-words list, we'll have to manually add to this list.
244242
throw new Error(`${dirPath}: Contains the word 'download', which is banned by npm.`);
245243
}

0 commit comments

Comments
 (0)