Unverified Commit c5577bb3 authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

[react-sync] Allow locking in manual sync (#91509)

parent 2d44d0dc
......@@ -1457,7 +1457,11 @@ export async function copy_vendor_react(task_) {
// TODO-APP: remove unused fields from package.json and unused files
function overridePackageName(source) {
const json = JSON.parse(source)
json.name = json.name + '-' + channel
// avoid infinite suffix addition in case the package name already has the suffix
// e.g. if we install from src/compiled instead of npm registry.
if (!json.name.endsWith(`-${channel}`)) {
json.name = json.name + '-' + channel
}
return JSON.stringify(
{
name: json.name,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment