Skip to content
Source
Sign inSign up
TanStack/query

Codemods-scripts missing in 5.0.0-alpha.14 #5230

Send to my agent
Closedchristianhultin(GitHub profile, opens in a new tab) opened this issue 5 comments

Describe the bug

Thanks for a great project! It looks like the latest alpha-release (5.0.0-alpha.14) are missing the codemod-scripts-folder

Your minimal, reproducible example

Steps to reproduce

  1. Get the latest alpha release (5.0.0-alpha.14)
  2. Run the following script
npx jscodeshift ./path/to/src/ \
  --extensions=ts,tsx \
  --parser=tsx \
  --transform=./node_modules/@tanstack/react-query/codemods/v5/remove-overloads/remove-overloads.js
  1. Recieve error that file is not found

Expected behavior

File is found :)

How often does this bug happen?

Every time

Screenshots or Videos

Platform

  • OS: Mac

Tanstack Query adapter

react-query

TanStack Query version

5.0.0-alpha.14

TypeScript version

v5.0.3

Additional context

  1. @balazsmatepetro can you have a look please? I think codemods are their own package in the monorepo now, but we wouldn't want them to be their own package on npm. Can we include the codemod files in the framework distributions (react/vue/solid/svelte) so that the command mentioned in the migration guide works ?

  2. TkDodo added labelsbug

  3. TkDodo added labelsv5

  4. Just want to mention that the codemode was missing already in version 5.0.0-alpha.12 (available in npm)

  5. I will take a look. Thank you for mentioning it! 🙏

  6. I'm seeing this fail w/ 5.0.0-alpha.21, though I wasn't able to find the file in my node modules, so I can't blame pnpm like I intended to xD

  7. fixed with #5340

    please note that the location of the codemods has slightly changed - I updated the migration guide

  8. TkDodo closed this

Sign in to join this conversation.