Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codemods are not included in ra-core v5 #9746

Closed
slax57 opened this issue Mar 27, 2024 · 1 comment
Closed

Codemods are not included in ra-core v5 #9746

slax57 opened this issue Mar 27, 2024 · 1 comment
Labels

Comments

@slax57
Copy link
Contributor

slax57 commented Mar 27, 2024

What you were expecting:
To be able to run the command

npx jscodeshift ./src/ \
    --extensions=ts,tsx \
    --parser=tsx \
    --transform=./node_modules/ra-core/codemods/replace-Admin-history.ts

As described in the upgrade guide.

What happened instead:
Got an error ERROR Transform file /home/slax57/workspaces/my-admin5/node_modules/ra-core/codemods/replace-Admin-history.ts does not exist

Steps to reproduce:

  • Create a new RA project using RA v5 (npm install react-admin@next)
  • Run the following command:
npx jscodeshift ./src/ \
    --extensions=ts,tsx \
    --parser=tsx \
    --transform=./node_modules/ra-core/codemods/replace-Admin-history.ts

Environment

  • React-admin version: 5.0.0-alpha.1
@fzaninotto
Copy link
Member

This is fixed in the beta.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants