mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-31 11:59:04 -06:00
* 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>
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.