diff --git a/.changeset/slimy-socks-count.md b/.changeset/slimy-socks-count.md new file mode 100644 index 000000000000..6508b6b0517c --- /dev/null +++ b/.changeset/slimy-socks-count.md @@ -0,0 +1,5 @@ +--- +'@ai-sdk/codemod': patch +--- + +fix (codemod): Filter more dirs/files unlikely to need transform. diff --git a/packages/codemod/src/lib/transform.ts b/packages/codemod/src/lib/transform.ts index 360ccafa3ab7..41ed9f949b60 100644 --- a/packages/codemod/src/lib/transform.ts +++ b/packages/codemod/src/lib/transform.ts @@ -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';