Skip to content

Commit

Permalink
fix (codemod): Filter more dirs/files unlikely to need transform.
Browse files Browse the repository at this point in the history
Part of #3766.
  • Loading branch information
shaper committed Nov 20, 2024
1 parent a334c6a commit de4d5fc
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 de4d5fc

Please sign in to comment.