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 a5606b3 commit 8a1f345
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/runtimes/node/utils/included_files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,16 @@ export const getPathsOfIncludedFiles = async (
},
{ 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)
// `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: 1 addition & 1 deletion tests/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1679,7 +1679,7 @@ testMany(
},
)

testMany(
testMany.only(
'Includes in the bundle any paths matched by a `included_files` glob',
['bundler_default', 'bundler_esbuild', 'bundler_esbuild_zisi', 'bundler_default_nft', 'bundler_nft'],
async (options, t) => {
Expand Down

0 comments on commit 8a1f345

Please sign in to comment.