Files
Bill Glesias f9c3f75563 chore: bundle the root package.json as an installable package (#32544)
* chore: bundle the root package.json as an installable package

* Update packages/root/README.md

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>

* Update guides/esm-migration.md

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>

* Update packages/root/README.md

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-09-30 17:15:18 -04:00
..

Purpose

Bundles the monorepo root package.json as an installable package, allowing @packages/root to be installed in any context without having an absolute reference to the root package.json

In order to accomplish this, rollup is used to bundle the package.json, as packages may be interpreted in place or be installed inside the node_modules directory. This package builds an index.mjs file for packages using vite/ ES Modules and an index.js file for any CommonJS entry points.