Skip to content

Commit

Permalink
Merge pull request #3 from neogeek/hotfix/disable-globby-gitignore
Browse files Browse the repository at this point in the history
[hotfix] Disable gitignore in globby.
  • Loading branch information
neogeek authored Apr 27, 2024
2 parents eccb2c1 + 1e042d0 commit 94484b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const [ignoreFile = '.onlyignore'] = [args.flags['--ignore'], args.flags['-i']]

await buildFiles(
await globby(['**/*.mjs', '!_*/**/*', '!node_modules/', `!${buildDir}`], {
gitignore: true,
gitignore: false,
ignoreFiles: [ignoreFile],
cwd: args.inputs[0]
}),
Expand All @@ -69,7 +69,7 @@ await copyFiles(
`!${buildDir}`
],
{
gitignore: true,
gitignore: false,
ignoreFiles: [ignoreFile],
cwd: args.inputs[0]
}
Expand Down
2 changes: 2 additions & 0 deletions tests/benchmarks/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules/

build/

posts/

0 comments on commit 94484b1

Please sign in to comment.