Skip to content

Commit 45a7423

Browse files
committed
Improve internal naming
1 parent 316bed2 commit 45a7423

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/npm/util.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ function npmignoreExistsInPackageRootDir() {
132132
}
133133

134134
async function getFilesIgnoredByDotnpmignore(pkg, fileList) {
135-
const whiteList = await ignoreWalker({
135+
const allowList = await ignoreWalker({
136136
path: pkgDir.sync(),
137137
ignoreFiles: ['.npmignore']
138138
});
139-
return fileList.filter(minimatch.filter(getIgnoredFilesGlob(whiteList, pkg.directories), {matchBase: true, dot: true}));
139+
return fileList.filter(minimatch.filter(getIgnoredFilesGlob(allowList, pkg.directories), {matchBase: true, dot: true}));
140140
}
141141

142142
function getFilesNotIncludedInFilesProperty(pkg, fileList) {

0 commit comments

Comments
 (0)