Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
252 views
in Technique[技术] by (71.8m points)

prisma2 - prisma/codemods doesn't transform findUnique

I just did an update from version 2.10.1 to version 2.15.0. Furthermore I ran "npx @prisma/codemods update-2.12 ./". Then times only the single findUnique transform. However always the same result comes out:

PS C:AppBackend> npx @prisma/codemods findUnique ./ --print
Executing command: jscodeshift --print --verbose=0 --ignore-config=.gitignore --ignore-pattern=**/node_modules/** -- 
extensions=tsx,ts,js,tsx --parser=tsx --transform 
C:AppBackend
[email protected] ./
No files selected, nothing to do.
All done.
Results:
0 errors
0 unmodified
0 skipped
0 ok
Time elapsed: 0.035seconds

Why does codemods not recognize the files in my project?

https://github.com/prisma/codemods

question from:https://stackoverflow.com/questions/65835998/prisma-codemods-doesnt-transform-findunique

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Could be solved here: https://github.com/prisma/codemods/issues/22 Seems that i have to much subfolders and the script didn't recognized it.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...