@suluk/platform - v0.6.0
    Preparing search index...

    Function mergePackageJson

    • Merge the generated framework baseline package.json with the app's EXISTING one (if any). The baseline WINS for the framework + module deps (so @suluk/* stay "latest" and the ecosystem stays on its pinned range — deps stay current across a regenerate), while any deps / scripts / top-level fields the app added are PRESERVED. No existing ⇒ the baseline verbatim. Keys are sorted for stable output. Pure + testable.

      Parameters

      • baselineJson: string
      • existingJson: string | null

      Returns string