Rewrite one direct-dep range in raw package.json TEXT, preserving the file's
formatting (a surgical string edit, not a JSON round-trip that would reflow the
whole file). Matches the exact "<name>": "<from>" pair — both escaped — so it
can't touch an unrelated key; replaces every field it appears in (a dep pinned
the same in dependencies + devDependencies → both updated, which is correct).
Rewrite one direct-dep range in raw package.json TEXT, preserving the file's formatting (a surgical string edit, not a JSON round-trip that would reflow the whole file). Matches the exact
"<name>": "<from>"pair — both escaped — so it can't touch an unrelated key; replaces every field it appears in (a dep pinned the same independencies+devDependencies→ both updated, which is correct).