react-admin
react-admin copied to clipboard
Codemods are not included in ra-core v5
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