Skip to content

Commit

Permalink
fix: ignore sub directory node_modules when find the import file
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenngoclongdev authored Oct 9, 2024
1 parent 80f0fc7 commit 53b488d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/red-tomatoes-remember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"terminal-keeper": patch
---

fix: ignore sub directory node_modules when find the import file
2 changes: 1 addition & 1 deletion src/commands/importAsync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const getFilePaths = async (workspaceFolders: readonly WorkspaceFolder[], filena
cwd: wsFolder.uri.fsPath,
nodir: true,
absolute: true,
ignore: 'node_modules/**'
ignore: '**/node_modules/**'
});
filePaths.push(...files);
}
Expand Down

0 comments on commit 53b488d

Please sign in to comment.