We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c660a8 commit 25f97c5Copy full SHA for 25f97c5
cli/sync.ts
@@ -609,11 +609,16 @@ export async function* readDirRecursiveWithIgnore(
609
610
while (stack.length > 0) {
611
const e = stack.pop()!;
612
+ // console.log(e.path);
613
yield e;
614
for await (const e2 of e.c()) {
- if (e2.path.startsWith(".git" + SEP)) {
615
- continue;
+ if (e2.isDirectory) {
616
+ const dirName = e2.path.split(SEP).pop();
617
+ if (dirName == "node_modules" || dirName?.startsWith(".")) {
618
+ continue;
619
+ }
620
}
621
+ console.log(e2.path);
622
stack.push({
623
path: e2.path,
624
ignored: e.ignored || ignore(e2.path, e2.isDirectory),
0 commit comments