react-admin icon indicating copy to clipboard operation
react-admin copied to clipboard

Codemods are not included in ra-core v5

Open slax57 opened this issue 1 year ago • 0 comments

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

slax57 avatar Mar 27 '24 10:03 slax57