vercel / turborepo

Build system optimized for JavaScript and TypeScript, written in Rust
https://turbo.build/repo/docs
MIT License
26.1k stars 1.8k forks source link

Running `npx @turbo/codemod update .` renames some package names. This causes builds to fail. #8312

Open mayank1513 opened 3 months ago

mayank1513 commented 3 months ago

Verify canary release

Link to code that reproduces this issue

https://github.com/react18-tools/esbuild-plugin-react18-css/actions/runs/9376532653

What package manager are you using / does the bug impact?

pnpm

What operating system are you using?

Linux

Which canary version will you have in your reproduction?

latest

Describe the Bug

Running npx @turbo/codemod update . renames some package names. This causes builds to fail.

I do not want name inside package.json of my library inside the lib directory to be renamed to lib-something.

Expected Behavior

Codemod should not interfere with how I name my packages.

To Reproduce

See code at this commit - https://github.com/react18-tools/esbuild-plugin-react18-css/tree/53de8117152adbab501189998fd16a7923eae0ca

Checkout and try applying codemod npx @turbo/codemod update .

Additional context

Possible area to fix

mayank1513 commented 3 months ago

Another example -> https://github.com/react18-tools/treeshakable/actions/runs/9376346376