Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
chore: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
danez committed Jun 3, 2022
1 parent 8a1f345 commit 2040db9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtimes/node/utils/included_files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ export const getPathsOfIncludedFiles = async (
{ include: [], excludePatterns: [] },
)

console.log(include, excludePatterns)
console.log({ include, excludePatterns })

const pathGroups = await Promise.all(
include.map((expression) =>
glob(expression, { absolute: true, cwd: basePath, ignore: excludePatterns, nodir: true }),
),
)

console.log(pathGroups)
console.log({ pathGroups })
// `pathGroups` is an array containing the paths for each expression in the
// `include` array. We flatten it into a single dimension.
const paths = pathGroups.flat()
Expand Down
2 changes: 2 additions & 0 deletions src/utils/matching.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export const glob = function (pattern: string, options: globFunction.IOptions):
? unixify(options.ignore)
: options.ignore.map((expression) => unixify(expression))
}

console.log({ normalizedIgnore })
return pGlob(unixify(pattern), { ...options, ignore: normalizedIgnore })
}

Expand Down

0 comments on commit 2040db9

Please sign in to comment.