prisma / codemods

A Collection of Codemods for Prisma 2

Home Page:https://www.prisma.io/docs/guides/upgrade-guides/upgrading-versions/codemods

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Should not transform enums

Sytten opened this issue · comments

Describe the bug
Since enum are runtime objects, they don't belong in the Prisma namespace.

Screen Shot 2020-11-25 at 5 22 15 PM

@Sytten Could you please follow the bug template as it helps a lot when creating tests and fixing these issues.

@Sytten this seems related to #15, could you please confirm?

I can try again, but seems to me a regex to detect that it is an enum would be better?

Closing as I'm pretty sure this is fixed in the latest releases. If not feel free to reopen and ping me