Skip to content

Commit

Permalink
Improve internal naming
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Dec 26, 2020
1 parent 316bed2 commit 45a7423
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/npm/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ function npmignoreExistsInPackageRootDir() {
}

async function getFilesIgnoredByDotnpmignore(pkg, fileList) {
const whiteList = await ignoreWalker({
const allowList = await ignoreWalker({
path: pkgDir.sync(),
ignoreFiles: ['.npmignore']
});
return fileList.filter(minimatch.filter(getIgnoredFilesGlob(whiteList, pkg.directories), {matchBase: true, dot: true}));
return fileList.filter(minimatch.filter(getIgnoredFilesGlob(allowList, pkg.directories), {matchBase: true, dot: true}));
}

function getFilesNotIncludedInFilesProperty(pkg, fileList) {
Expand Down

0 comments on commit 45a7423

Please sign in to comment.