Skip to content

Commit

Permalink
fix (codemod): Filter more dirs/files unlikely to need transform. (#3803
Browse files Browse the repository at this point in the history
)
  • Loading branch information
shaper authored Nov 21, 2024
1 parent b40183a commit c4e1192
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/slimy-socks-count.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/codemod': patch
---

fix (codemod): Filter more dirs/files unlikely to need transform.
6 changes: 5 additions & 1 deletion packages/codemod/src/lib/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ function buildCommand(
let command = `${jscodeshift} -t ${codemodPath} ${targetPath} \
--parser tsx \
--ignore-pattern="**/node_modules/**" \
--ignore-pattern="**/.*/**"`;
--ignore-pattern="**/.*/**" \
--ignore-pattern="**/dist/**" \
--ignore-pattern="**/build/**" \
--ignore-pattern="**/*.min.js" \
--ignore-pattern="**/*.bundle.js"`;

if (options.dry) {
command += ' --dry';
Expand Down

0 comments on commit c4e1192

Please sign in to comment.