Update checked-in dependencies
This commit is contained in:
parent
6b0d45a5c6
commit
cc1adb825a
4247 changed files with 144820 additions and 149530 deletions
13
node_modules/globby/gitignore.js
generated
vendored
13
node_modules/globby/gitignore.js
generated
vendored
|
|
@ -34,18 +34,21 @@ const parseGitIgnore = (content, options) => {
|
|||
};
|
||||
|
||||
const reduceIgnore = files => {
|
||||
return files.reduce((ignores, file) => {
|
||||
const ignores = gitIgnore();
|
||||
for (const file of files) {
|
||||
ignores.add(parseGitIgnore(file.content, {
|
||||
cwd: file.cwd,
|
||||
fileName: file.filePath
|
||||
}));
|
||||
return ignores;
|
||||
}, gitIgnore());
|
||||
}
|
||||
|
||||
return ignores;
|
||||
};
|
||||
|
||||
const ensureAbsolutePathForCwd = (cwd, p) => {
|
||||
cwd = slash(cwd);
|
||||
if (path.isAbsolute(p)) {
|
||||
if (p.startsWith(cwd)) {
|
||||
if (slash(p).startsWith(cwd)) {
|
||||
return p;
|
||||
}
|
||||
|
||||
|
|
@ -56,7 +59,7 @@ const ensureAbsolutePathForCwd = (cwd, p) => {
|
|||
};
|
||||
|
||||
const getIsIgnoredPredecate = (ignores, cwd) => {
|
||||
return p => ignores.ignores(slash(path.relative(cwd, ensureAbsolutePathForCwd(cwd, p))));
|
||||
return p => ignores.ignores(slash(path.relative(cwd, ensureAbsolutePathForCwd(cwd, p.path || p))));
|
||||
};
|
||||
|
||||
const getFile = async (file, cwd) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue