Effect-TS / codemod

Code mod's for the Effect ecosystem
https://effect-ts.github.io/codemod
MIT License
9 stars 1 forks source link

Codemod cannot adjust tsx files #33

Open standag opened 5 months ago

standag commented 5 months ago

What version of Effect is running?

3.0.3

What steps can reproduce the bug?

npx @effect/codemod@latest effect-3.0 src/*/.tsx

Processing 149 files... Spawning 7 workers... Sending 22 files to free worker... Sending 22 files to free worker... Sending 22 files to free worker... Sending 22 files to free worker... Sending 22 files to free worker... Sending 22 files to free worker... Sending 17 files to free worker... All done. Results: 148 errors 1 unmodified 0 skipped 0 ok Time elapsed: 0.674seconds

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

I used tsx parser locally with some partial success. There is some problem with jscodeshift. Verbose mode would also be nice.

gcanti commented 5 months ago

We would need an example of a tsx file that raises an error.

Did you try npx jscodeshift --parser=tsx --verbose=2 --extensions=tsx -t=node_modules/@effect/codemod/codemods/effect-3.0.ts src locally?