codemod iterations (#2386)
This commit is contained in:
parent
49aeb8eb38
commit
36055d5bbd
1 changed files with 800 additions and 48 deletions
5
.changeset/codemod-preserve-shebang.md
Normal file
5
.changeset/codemod-preserve-shebang.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@modelcontextprotocol/codemod': patch
|
||||
---
|
||||
|
||||
Preserve a leading `#!` shebang (and the blank lines after it) when migrating a file. Some transforms drop the shebang because it is leading trivia of the first import they rewrite; the codemod now captures it before transforms and restores it before saving, so CLI packages whose `bin` points at the migrated entry keep working.
|
||||
Loading…
Reference in a new issue