Skip to content

fix(codemods): update codemods build script - #11647

Merged
lachlancollins merged 3 commits into
mainfrom
fix-codemods
Sep 25, 2026
Merged

lachlancollins merged 3 commits into
mainfrom
fix-codemods

Conversation

@lachlancollins

Copy link
Copy Markdown
Member

🎯 Changes

The current cpy-cli command generates a weird output - it generates the intended target "codemods" folder, but also a "query-codemods" folder with root-level files. These files do not need to be shipped (and also cause an error with the latest Publint version).

image

This PR switches to pnpm's shellEmulator to allow for bash-like commands even on Windows systems. The behaviour is far more predictable.

By using shellEmulator, we can remove cpy-cli, cross-env, and possibly premove, reducing dependencies.

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested code changes locally with pnpm run test:pr, or these tests do not apply to this pull request.
  • I have followed the AI contribution policy and fully understand the code in this pull request, including any code generated with AI assistance.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).

@nx-cloud

nx-cloud Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit ffce232

Command Status Duration Result
nx affected --targets=test:sherif,test:knip,tes... ✅ Succeeded 4m 14s View ↗
nx run-many --target=build --exclude=examples/*... ✅ Succeeded 44s View ↗

☁️ Nx Cloud last updated this comment at 2026-09-25 21:46:13 UTC

@socket-security

socket-security Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedpublint@​0.3.18 ⏵ 0.3.2410010081 +193 +5100

View full report

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Changeset Version Preview

4 package(s) bumped directly, 21 bumped as dependents.

🟩 Patch bumps

Package Version Reason
@tanstack/preact-query 5.103.2 → 5.103.3 Changeset
@tanstack/react-query 5.103.2 → 5.103.3 Changeset
@tanstack/solid-query 5.103.2 → 5.103.3 Changeset
@tanstack/svelte-query 6.2.4 → 6.2.5 Changeset
@tanstack/angular-query-experimental 5.103.2 → 5.103.3 Dependent
@tanstack/angular-query-persist-client 5.103.2 → 5.103.3 Dependent
@tanstack/eslint-plugin-query 5.103.2 → 5.103.3 Dependent
@tanstack/lit-query 0.2.23 → 0.2.24 Dependent
@tanstack/preact-query-devtools 5.103.2 → 5.103.3 Dependent
@tanstack/preact-query-persist-client 5.103.2 → 5.103.3 Dependent
@tanstack/query-async-storage-persister 5.103.2 → 5.103.3 Dependent
@tanstack/query-broadcast-client-experimental 5.103.2 → 5.103.3 Dependent
@tanstack/query-core 5.103.2 → 5.103.3 Dependent
@tanstack/query-devtools 5.103.2 → 5.103.3 Dependent
@tanstack/query-persist-client-core 5.103.2 → 5.103.3 Dependent
@tanstack/query-sync-storage-persister 5.103.2 → 5.103.3 Dependent
@tanstack/react-query-devtools 5.103.2 → 5.103.3 Dependent
@tanstack/react-query-next-experimental 5.103.2 → 5.103.3 Dependent
@tanstack/react-query-persist-client 5.103.2 → 5.103.3 Dependent
@tanstack/solid-query-devtools 5.103.2 → 5.103.3 Dependent
@tanstack/solid-query-persist-client 5.103.2 → 5.103.3 Dependent
@tanstack/svelte-query-devtools 6.2.4 → 6.2.5 Dependent
@tanstack/svelte-query-persist-client 6.2.4 → 6.2.5 Dependent
@tanstack/vue-query 5.103.2 → 5.103.3 Dependent
@tanstack/vue-query-devtools 6.2.4 → 6.2.5 Dependent

@coderabbitai

coderabbitai Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: Repository: TanStack/query/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: d20154f2-3b3c-403c-b16c-d7bd4a6c2c8d

📥 Commits

Reviewing files that changed from the base of the PR and between 7a23df2 and 6aeaacb.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (8)
  • .changeset/flat-bears-leave.md
  • docs/framework/react/guides/migrating-to-v5.md
  • integrations/react-webpack-4/package.json
  • package.json
  • packages/preact-query/package.json
  • packages/query-codemods/package.json
  • packages/react-query/package.json
  • pnpm-workspace.yaml
 ___________________________________________________________________________________________________________________
< Work with a user to think like a user. It's the best way to gain insight into how the system will really be used. >
 -------------------------------------------------------------------------------------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pkg-pr-new

pkg-pr-new Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
More templates

@tanstack/angular-query-experimental

npm i https://pkg.pr.new/@tanstack/angular-query-experimental@11647

@tanstack/eslint-plugin-query

npm i https://pkg.pr.new/@tanstack/eslint-plugin-query@11647

@tanstack/lit-query

npm i https://pkg.pr.new/@tanstack/lit-query@11647

@tanstack/preact-query

npm i https://pkg.pr.new/@tanstack/preact-query@11647

@tanstack/preact-query-devtools

npm i https://pkg.pr.new/@tanstack/preact-query-devtools@11647

@tanstack/preact-query-persist-client

npm i https://pkg.pr.new/@tanstack/preact-query-persist-client@11647

@tanstack/query-async-storage-persister

npm i https://pkg.pr.new/@tanstack/query-async-storage-persister@11647

@tanstack/query-broadcast-client-experimental

npm i https://pkg.pr.new/@tanstack/query-broadcast-client-experimental@11647

@tanstack/query-core

npm i https://pkg.pr.new/@tanstack/query-core@11647

@tanstack/query-devtools

npm i https://pkg.pr.new/@tanstack/query-devtools@11647

@tanstack/query-persist-client-core

npm i https://pkg.pr.new/@tanstack/query-persist-client-core@11647

@tanstack/query-sync-storage-persister

npm i https://pkg.pr.new/@tanstack/query-sync-storage-persister@11647

@tanstack/react-query

npm i https://pkg.pr.new/@tanstack/react-query@11647

@tanstack/react-query-devtools

npm i https://pkg.pr.new/@tanstack/react-query-devtools@11647

@tanstack/react-query-next-experimental

npm i https://pkg.pr.new/@tanstack/react-query-next-experimental@11647

@tanstack/react-query-persist-client

npm i https://pkg.pr.new/@tanstack/react-query-persist-client@11647

@tanstack/solid-query

npm i https://pkg.pr.new/@tanstack/solid-query@11647

@tanstack/solid-query-devtools

npm i https://pkg.pr.new/@tanstack/solid-query-devtools@11647

@tanstack/solid-query-persist-client

npm i https://pkg.pr.new/@tanstack/solid-query-persist-client@11647

@tanstack/svelte-query

npm i https://pkg.pr.new/@tanstack/svelte-query@11647

@tanstack/svelte-query-devtools

npm i https://pkg.pr.new/@tanstack/svelte-query-devtools@11647

@tanstack/svelte-query-persist-client

npm i https://pkg.pr.new/@tanstack/svelte-query-persist-client@11647

@tanstack/vue-query

npm i https://pkg.pr.new/@tanstack/vue-query@11647

@tanstack/vue-query-devtools

npm i https://pkg.pr.new/@tanstack/vue-query-devtools@11647

commit: 6aeaacb

@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
react full 11.73 KB (0%)
react minimal 8.58 KB (0%)

@lachlancollins
lachlancollins merged commit 1c9693e into main Sep 25, 2026
8 of 9 checks passed
@lachlancollins
lachlancollins deleted the fix-codemods branch September 25, 2026 21:47
@github-actions github-actions Bot mentioned this pull request Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant