# json

`package.json` synthesis primitives: read, inherit, filter, generate exports, resolve CDN paths, synthesize the dist manifest, and write it to disk.

The subdomain ships as small, single-purpose primitives so wrappers can compose only the steps they need: [`readProjectPackageJson`](https://www.hyperfrontend.dev/docs/libraries/builder/package/json/#api-readProjectPackageJson), [`inheritFields`](https://www.hyperfrontend.dev/docs/libraries/builder/package/json/#api-inheritFields) for selective field copy, [`filterWorkspaceDepsFromOutput`](https://www.hyperfrontend.dev/docs/libraries/builder/package/json/#api-filterWorkspaceDepsFromOutput) to strip workspace-internal entries, [`generateExportsFromFormats`](https://www.hyperfrontend.dev/docs/libraries/builder/package/json/#api-generateExportsFromFormats) to align the published `exports` map with the bundle-phase outputs, [`getCdnPaths`](https://www.hyperfrontend.dev/docs/libraries/builder/package/json/#api-getCdnPaths) for [`unpkg`](https://www.hyperfrontend.dev/docs/libraries/builder/package/json/#api-CdnPaths-prop-unpkg)/[`jsdelivr`](https://www.hyperfrontend.dev/docs/libraries/builder/package/json/#api-CdnPaths-prop-jsdelivr) resolution, and [`writeOutputPackageJson`](https://www.hyperfrontend.dev/docs/libraries/builder/package/json/#api-writeOutputPackageJson) for the final emit. [`synthesizePackageJson`](https://www.hyperfrontend.dev/docs/libraries/builder/package/json/#api-synthesizePackageJson) is the facade that wires all of them together.

---

Canonical page: https://www.hyperfrontend.dev/docs/libraries/builder/package/json/
This file: https://www.hyperfrontend.dev/docs/libraries/builder/package/json.md
Documentation index: https://www.hyperfrontend.dev/llms.txt
