From e318df5e03daf6ba7b96984ab1998511e778f04c Mon Sep 17 00:00:00 2001 From: Bill Glesias Date: Mon, 22 Sep 2025 09:53:59 -0400 Subject: [PATCH 1/4] chore: bundle the root package.json as an installable package --- .circleci/src/workflows/workflows/@main.yml | 2 +- .circleci/workflows.yml | 10 +- .cursor/BUGBOT.md | 2 +- guides/esm-migration.md | 2 +- packages/root/.gitignore | 2 + packages/root/README.md | 5 + packages/root/index.js | 1 - packages/root/index.ts | 3 + packages/root/package.json | 15 +- packages/root/rollup.config.mjs | 7 + packages/root/tsconfig.json | 5 + scripts/binary/build.ts | 15 +- yarn.lock | 267 +++++++++++--------- 13 files changed, 195 insertions(+), 141 deletions(-) create mode 100644 packages/root/.gitignore create mode 100644 packages/root/README.md delete mode 100644 packages/root/index.js create mode 100644 packages/root/index.ts create mode 100644 packages/root/rollup.config.mjs create mode 100644 packages/root/tsconfig.json diff --git a/.circleci/src/workflows/workflows/@main.yml b/.circleci/src/workflows/workflows/@main.yml index 315c36cbe44..e12f2d19d8e 100644 --- a/.circleci/src/workflows/workflows/@main.yml +++ b/.circleci/src/workflows/workflows/@main.yml @@ -5,7 +5,7 @@ linux-x64: - equal: [ develop, << pipeline.git.branch >> ] # use the following branch as well to ensure that v8 snapshot cache updates are fully tested - equal: [ 'update-v8-snapshot-cache-on-develop', << pipeline.git.branch >> ] - - equal: [ 'chore/merge_gql_package_w_data_context', << pipeline.git.branch >> ] + - equal: [ 'chore/bundle_package_root', << pipeline.git.branch >> ] - matches: pattern: /^release\/\d+\.\d+\.\d+$/ value: << pipeline.git.branch >> diff --git a/.circleci/workflows.yml b/.circleci/workflows.yml index 8561501fdc4..f0ef5dba266 100644 --- a/.circleci/workflows.yml +++ b/.circleci/workflows.yml @@ -3718,7 +3718,7 @@ workflows: - update-v8-snapshot-cache-on-develop - << pipeline.git.branch >> - equal: - - chore/merge_gql_package_w_data_context + - chore/bundle_package_root - << pipeline.git.branch >> - matches: pattern: /^release\/\d+\.\d+\.\d+$/ @@ -3775,7 +3775,7 @@ workflows: - update-v8-snapshot-cache-on-develop - << pipeline.git.branch >> - equal: - - chore/merge_gql_package_w_data_context + - chore/bundle_package_root - << pipeline.git.branch >> - matches: pattern: /^release\/\d+\.\d+\.\d+$/ @@ -3843,7 +3843,7 @@ workflows: - update-v8-snapshot-cache-on-develop - << pipeline.git.branch >> - equal: - - chore/merge_gql_package_w_data_context + - chore/bundle_package_root - << pipeline.git.branch >> - matches: pattern: /^release\/\d+\.\d+\.\d+$/ @@ -4331,7 +4331,7 @@ workflows: - update-v8-snapshot-cache-on-develop - << pipeline.git.branch >> - equal: - - chore/merge_gql_package_w_data_context + - chore/bundle_package_root - << pipeline.git.branch >> - matches: pattern: /^release\/\d+\.\d+\.\d+$/ @@ -5168,7 +5168,7 @@ workflows: - update-v8-snapshot-cache-on-develop - << pipeline.git.branch >> - equal: - - chore/merge_gql_package_w_data_context + - chore/bundle_package_root - << pipeline.git.branch >> - matches: pattern: /^release\/\d+\.\d+\.\d+$/ diff --git a/.cursor/BUGBOT.md b/.cursor/BUGBOT.md index 09e0c4c56c0..a9c5dc38c51 100644 --- a/.cursor/BUGBOT.md +++ b/.cursor/BUGBOT.md @@ -131,7 +131,7 @@ Essential rules for reviewing code changes in the Cypress monorepo. - Focus: Scaffolding logic, template accuracy, project initialization ### Utility Packages (Lower Priority) -- **@packages/root**: Root package (dummy package) +- **@packages/root**: Root package - Focus: Monorepo setup, package coordination - **@packages/example**: Example project - Focus: Example accuracy, documentation quality, test examples diff --git a/guides/esm-migration.md b/guides/esm-migration.md index 6c3b4fd31ae..a0b0720ddb0 100644 --- a/guides/esm-migration.md +++ b/guides/esm-migration.md @@ -55,7 +55,7 @@ - [x] packages/reporter ✅ **COMPLETED** - [ ] packages/resolve-dist **PARTIAL** - entry point is JS - [ ] packages/rewriter **PARTIAL** - entry point is JS -- [ ] packages/root +- [x] packages/root - [x] packages/runner ✅ **COMPLETED** - [ ] packages/scaffold-config **PARTIAL** - entry point is JS - [ ] packages/server **PARTIAL** - many source/test files in JS. highest priority diff --git a/packages/root/.gitignore b/packages/root/.gitignore new file mode 100644 index 00000000000..2e874fe711a --- /dev/null +++ b/packages/root/.gitignore @@ -0,0 +1,2 @@ +index.js +index.mjs \ No newline at end of file diff --git a/packages/root/README.md b/packages/root/README.md new file mode 100644 index 00000000000..1ffa8cbda6c --- /dev/null +++ b/packages/root/README.md @@ -0,0 +1,5 @@ +# Purpose + +Bundles the monorepo root `package.json` as an installable package, allowing `@packages/root` to be installed in any context without having a absolute reference ot the root `package.json` + +In order to accomplish this, `rollup` is used 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 entrypoints. \ No newline at end of file diff --git a/packages/root/index.js b/packages/root/index.js deleted file mode 100644 index 24309050cc6..00000000000 --- a/packages/root/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../package.json') diff --git a/packages/root/index.ts b/packages/root/index.ts new file mode 100644 index 00000000000..8544a867cab --- /dev/null +++ b/packages/root/index.ts @@ -0,0 +1,3 @@ +import pkg from '../../package.json' + +export default pkg diff --git a/packages/root/package.json b/packages/root/package.json index da93428177f..db2605734bc 100644 --- a/packages/root/package.json +++ b/packages/root/package.json @@ -1,7 +1,20 @@ { "name": "@packages/root", "version": "0.0.0-development", - "description": "dummy package pointing at the root package", + "description": "bundles the root package.json as an installable package", "main": "index.js", + "scripts": { + "build": "yarn build:cjs && yarn build:esm", + "build:cjs": "rimraf index.js && rollup -c rollup.config.mjs -f cjs -o index.js", + "build:esm": "rimraf index.mjs && rollup -c rollup.config.mjs -f esm -o index.mjs", + "build:prod": "yarn build" + }, + "devDependencies": { + "@rollup/plugin-json": "^6.1.0", + "rimraf": "^6.0.1", + "rollup": "^4.52.0", + "typescript": "^5.6.3" + }, + "module": "index.mjs", "nx": {} } diff --git a/packages/root/rollup.config.mjs b/packages/root/rollup.config.mjs new file mode 100644 index 00000000000..654afcb8073 --- /dev/null +++ b/packages/root/rollup.config.mjs @@ -0,0 +1,7 @@ +import json from '@rollup/plugin-json' + +export default { + input: 'index.ts', + // inlines the root package.json into the bundle + plugins: [json()], +} diff --git a/packages/root/tsconfig.json b/packages/root/tsconfig.json new file mode 100644 index 00000000000..fe768884866 --- /dev/null +++ b/packages/root/tsconfig.json @@ -0,0 +1,5 @@ +{ + "compilerOptions": { + "resolveJsonModule": true, + } +} diff --git a/scripts/binary/build.ts b/scripts/binary/build.ts index f1de54114c9..dba934c6986 100644 --- a/scripts/binary/build.ts +++ b/scripts/binary/build.ts @@ -96,6 +96,13 @@ export async function buildCypressApp (options: BuildCypressAppOpts) { if (!keepBuild) { log('#buildPackages') + // Update the root package.json with the next app version so that it is snapshot properly + // as well as make sure @packages/root is built with the correct version + fs.writeJSONSync(path.join(CY_ROOT_DIR, 'package.json'), { + ...jsonRoot, + version, + }, { spaces: 2 }) + await execa('yarn', ['lerna', 'run', 'build', '--concurrency', '4'], { stdio: 'inherit', cwd: CY_ROOT_DIR, @@ -226,7 +233,7 @@ require('./packages/server/index.js') } export async function packageElectronApp (options: BuildCypressAppOpts) { - const { platform, version, skipSigning = false } = options + const { platform, skipSigning = false } = options log('#removeCyAndBinFolders') await del([ @@ -260,12 +267,6 @@ export async function packageElectronApp (options: BuildCypressAppOpts) { console.log(`output folder: ${outputFolder}`) - // Update the root package.json with the next app version so that it is snapshot properly - fs.writeJSONSync(path.join(CY_ROOT_DIR, 'package.json'), { - ...jsonRoot, - version, - }, { spaces: 2 }) - try { await electronBuilder.build({ publish: 'never', diff --git a/yarn.lock b/yarn.lock index 1f71baf2b57..b8132ec6d60 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6325,6 +6325,13 @@ estree-walker "^1.0.1" magic-string "^0.25.5" +"@rollup/plugin-json@^6.1.0": + version "6.1.0" + resolved "https://registry.yarnpkg.com/@rollup/plugin-json/-/plugin-json-6.1.0.tgz#fbe784e29682e9bb6dee28ea75a1a83702e7b805" + integrity sha512-EGI2te5ENk1coGeADSIwZ7G2Q8CJS2sF120T7jLw4xFw9n7wIOXHo+kIYRAoVpJAN+kmqZSoO3Fp4JtoNF4ReA== + dependencies: + "@rollup/pluginutils" "^5.1.0" + "@rollup/plugin-node-resolve@^11.1.1": version "11.2.1" resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.2.1.tgz#82aa59397a29cd4e13248b106e6a4a1880362a60" @@ -6355,105 +6362,115 @@ estree-walker "^2.0.2" picomatch "^2.3.1" -"@rollup/rollup-android-arm-eabi@4.46.2": - version "4.46.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.46.2.tgz#292e25953d4988d3bd1af0f5ebbd5ee4d65c90b4" - integrity sha512-Zj3Hl6sN34xJtMv7Anwb5Gu01yujyE/cLBDB2gnHTAHaWS1Z38L7kuSG+oAh0giZMqG060f/YBStXtMH6FvPMA== - -"@rollup/rollup-android-arm64@4.46.2": - version "4.46.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.46.2.tgz#053b3def3451e6fc1a9078188f22799e868d7c59" - integrity sha512-nTeCWY83kN64oQ5MGz3CgtPx8NSOhC5lWtsjTs+8JAJNLcP3QbLCtDDgUKQc/Ro/frpMq4SHUaHN6AMltcEoLQ== - -"@rollup/rollup-darwin-arm64@4.46.2": - version "4.46.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.46.2.tgz#98d90445282dec54fd05440305a5e8df79a91ece" - integrity sha512-HV7bW2Fb/F5KPdM/9bApunQh68YVDU8sO8BvcW9OngQVN3HHHkw99wFupuUJfGR9pYLLAjcAOA6iO+evsbBaPQ== - -"@rollup/rollup-darwin-x64@4.46.2": - version "4.46.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.46.2.tgz#fe05f95a736423af5f9c3a59a70f41ece52a1f20" - integrity sha512-SSj8TlYV5nJixSsm/y3QXfhspSiLYP11zpfwp6G/YDXctf3Xkdnk4woJIF5VQe0of2OjzTt8EsxnJDCdHd2xMA== - -"@rollup/rollup-freebsd-arm64@4.46.2": - version "4.46.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.46.2.tgz#41e1fbdc1f8c3dc9afb6bc1d6e3fb3104bd81eee" - integrity sha512-ZyrsG4TIT9xnOlLsSSi9w/X29tCbK1yegE49RYm3tu3wF1L/B6LVMqnEWyDB26d9Ecx9zrmXCiPmIabVuLmNSg== - -"@rollup/rollup-freebsd-x64@4.46.2": - version "4.46.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.46.2.tgz#69131e69cb149d547abb65ef3b38fc746c940e24" - integrity sha512-pCgHFoOECwVCJ5GFq8+gR8SBKnMO+xe5UEqbemxBpCKYQddRQMgomv1104RnLSg7nNvgKy05sLsY51+OVRyiVw== - -"@rollup/rollup-linux-arm-gnueabihf@4.46.2": - version "4.46.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.46.2.tgz#977ded91c7cf6fc0d9443bb9c0a064e45a805267" - integrity sha512-EtP8aquZ0xQg0ETFcxUbU71MZlHaw9MChwrQzatiE8U/bvi5uv/oChExXC4mWhjiqK7azGJBqU0tt5H123SzVA== - -"@rollup/rollup-linux-arm-musleabihf@4.46.2": - version "4.46.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.46.2.tgz#dc034fc3c0f0eb5c75b6bc3eca3b0b97fd35f49a" - integrity sha512-qO7F7U3u1nfxYRPM8HqFtLd+raev2K137dsV08q/LRKRLEc7RsiDWihUnrINdsWQxPR9jqZ8DIIZ1zJJAm5PjQ== - -"@rollup/rollup-linux-arm64-gnu@4.46.2": - version "4.46.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.46.2.tgz#5e92613768d3de3ffcabc965627dd0a59b3e7dfc" - integrity sha512-3dRaqLfcOXYsfvw5xMrxAk9Lb1f395gkoBYzSFcc/scgRFptRXL9DOaDpMiehf9CO8ZDRJW2z45b6fpU5nwjng== - -"@rollup/rollup-linux-arm64-musl@4.46.2": - version "4.46.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.46.2.tgz#2a44f88e83d28b646591df6e50aa0a5a931833d8" - integrity sha512-fhHFTutA7SM+IrR6lIfiHskxmpmPTJUXpWIsBXpeEwNgZzZZSg/q4i6FU4J8qOGyJ0TR+wXBwx/L7Ho9z0+uDg== - -"@rollup/rollup-linux-loongarch64-gnu@4.46.2": - version "4.46.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.46.2.tgz#bd5897e92db7fbf7dc456f61d90fff96c4651f2e" - integrity sha512-i7wfGFXu8x4+FRqPymzjD+Hyav8l95UIZ773j7J7zRYc3Xsxy2wIn4x+llpunexXe6laaO72iEjeeGyUFmjKeA== - -"@rollup/rollup-linux-ppc64-gnu@4.46.2": - version "4.46.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.46.2.tgz#a7065025411c14ad9ec34cc1cd1414900ec2a303" - integrity sha512-B/l0dFcHVUnqcGZWKcWBSV2PF01YUt0Rvlurci5P+neqY/yMKchGU8ullZvIv5e8Y1C6wOn+U03mrDylP5q9Yw== - -"@rollup/rollup-linux-riscv64-gnu@4.46.2": - version "4.46.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.46.2.tgz#17f9c0c675e13ef4567cfaa3730752417257ccc3" - integrity sha512-32k4ENb5ygtkMwPMucAb8MtV8olkPT03oiTxJbgkJa7lJ7dZMr0GCFJlyvy+K8iq7F/iuOr41ZdUHaOiqyR3iQ== - -"@rollup/rollup-linux-riscv64-musl@4.46.2": - version "4.46.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.46.2.tgz#bc6ed3db2cedc1ba9c0a2183620fe2f792c3bf3f" - integrity sha512-t5B2loThlFEauloaQkZg9gxV05BYeITLvLkWOkRXogP4qHXLkWSbSHKM9S6H1schf/0YGP/qNKtiISlxvfmmZw== - -"@rollup/rollup-linux-s390x-gnu@4.46.2": - version "4.46.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.46.2.tgz#440c4f6753274e2928e06d2a25613e5a1cf97b41" - integrity sha512-YKjekwTEKgbB7n17gmODSmJVUIvj8CX7q5442/CK80L8nqOUbMtf8b01QkG3jOqyr1rotrAnW6B/qiHwfcuWQA== - -"@rollup/rollup-linux-x64-gnu@4.46.2": - version "4.46.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.46.2.tgz#1e936446f90b2574ea4a83b4842a762cc0a0aed3" - integrity sha512-Jj5a9RUoe5ra+MEyERkDKLwTXVu6s3aACP51nkfnK9wJTraCC8IMe3snOfALkrjTYd2G1ViE1hICj0fZ7ALBPA== - -"@rollup/rollup-linux-x64-musl@4.46.2": - version "4.46.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.46.2.tgz#c6f304dfba1d5faf2be5d8b153ccbd8b5d6f1166" - integrity sha512-7kX69DIrBeD7yNp4A5b81izs8BqoZkCIaxQaOpumcJ1S/kmqNFjPhDu1LHeVXv0SexfHQv5cqHsxLOjETuqDuA== - -"@rollup/rollup-win32-arm64-msvc@4.46.2": - version "4.46.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.46.2.tgz#b4ad4a79219892aac112ed1c9d1356cad0566ef5" - integrity sha512-wiJWMIpeaak/jsbaq2HMh/rzZxHVW1rU6coyeNNpMwk5isiPjSTx0a4YLSlYDwBH/WBvLz+EtsNqQScZTLJy3g== - -"@rollup/rollup-win32-ia32-msvc@4.46.2": - version "4.46.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.46.2.tgz#b1b22eb2a9568048961e4a6f540438b4a762aa62" - integrity sha512-gBgaUDESVzMgWZhcyjfs9QFK16D8K6QZpwAaVNJxYDLHWayOta4ZMjGm/vsAEy3hvlS2GosVFlBlP9/Wb85DqQ== - -"@rollup/rollup-win32-x64-msvc@4.46.2": - version "4.46.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.46.2.tgz#87079f137b5fdb75da11508419aa998cc8cc3d8b" - integrity sha512-CvUo2ixeIQGtF6WvuB87XWqPQkoFAFqW+HUo/WzHwuHDvIwZCtjdWXoYCcr06iKGydiqTclC4jU/TNObC/xKZg== +"@rollup/rollup-android-arm-eabi@4.52.0": + version "4.52.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.52.0.tgz#dfcddfa85a3cba8a0e95483b4a7255ab9e4cdf4d" + integrity sha512-VxDYCDqOaR7NXzAtvRx7G1u54d2kEHopb28YH/pKzY6y0qmogP3gG7CSiWsq9WvDFxOQMpNEyjVAHZFXfH3o/A== + +"@rollup/rollup-android-arm64@4.52.0": + version "4.52.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.52.0.tgz#f37b4a8741a7f42d2f2921bd621e7e824a262f0c" + integrity sha512-pqDirm8koABIKvzL59YI9W9DWbRlTX7RWhN+auR8HXJxo89m4mjqbah7nJZjeKNTNYopqL+yGg+0mhCpf3xZtQ== + +"@rollup/rollup-darwin-arm64@4.52.0": + version "4.52.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.52.0.tgz#fda8701d38d9888039c1a0e040c026daec908a3f" + integrity sha512-YCdWlY/8ltN6H78HnMsRHYlPiKvqKagBP1r+D7SSylxX+HnsgXGCmLiV3Y4nSyY9hW8qr8U9LDUx/Lo7M6MfmQ== + +"@rollup/rollup-darwin-x64@4.52.0": + version "4.52.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.52.0.tgz#c6008839852a33a686080957d296f727af9ca80d" + integrity sha512-z4nw6y1j+OOSGzuVbSWdIp1IUks9qNw4dc7z7lWuWDKojY38VMWBlEN7F9jk5UXOkUcp97vA1N213DF+Lz8BRg== + +"@rollup/rollup-freebsd-arm64@4.52.0": + version "4.52.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.52.0.tgz#2b3ee9028493fd58245ded2137de0bc5d6b8f1e4" + integrity sha512-Q/dv9Yvyr5rKlK8WQJZVrp5g2SOYeZUs9u/t2f9cQ2E0gJjYB/BWoedXfUT0EcDJefi2zzVfhcOj8drWCzTviw== + +"@rollup/rollup-freebsd-x64@4.52.0": + version "4.52.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.52.0.tgz#32e1ed194ceb3e0ef204efa237c04db13dece948" + integrity sha512-kdBsLs4Uile/fbjZVvCRcKB4q64R+1mUq0Yd7oU1CMm1Av336ajIFqNFovByipciuUQjBCPMxwJhCgfG2re3rg== + +"@rollup/rollup-linux-arm-gnueabihf@4.52.0": + version "4.52.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.52.0.tgz#e64b1b7b2744803d7f52701f8bbd2989ae399424" + integrity sha512-aL6hRwu0k7MTUESgkg7QHY6CoqPgr6gdQXRJI1/VbFlUMwsSzPGSR7sG5d+MCbYnJmJwThc2ol3nixj1fvI/zQ== + +"@rollup/rollup-linux-arm-musleabihf@4.52.0": + version "4.52.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.52.0.tgz#cef6569f633cacd09ad89189b9a805067141e01f" + integrity sha512-BTs0M5s1EJejgIBJhCeiFo7GZZ2IXWkFGcyZhxX4+8usnIo5Mti57108vjXFIQmmJaRyDwmV59Tw64Ap1dkwMw== + +"@rollup/rollup-linux-arm64-gnu@4.52.0": + version "4.52.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.52.0.tgz#358c20dc375f80e20048f99f46b507d6d8063fdf" + integrity sha512-uj672IVOU9m08DBGvoPKPi/J8jlVgjh12C9GmjjBxCTQc3XtVmRkRKyeHSmIKQpvJ7fIm1EJieBUcnGSzDVFyw== + +"@rollup/rollup-linux-arm64-musl@4.52.0": + version "4.52.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.52.0.tgz#8141352ddffbf4200b464c1e1957c050f5c0842a" + integrity sha512-/+IVbeDMDCtB/HP/wiWsSzduD10SEGzIZX2945KSgZRNi4TSkjHqRJtNTVtVb8IRwhJ65ssI56krlLik+zFWkw== + +"@rollup/rollup-linux-loong64-gnu@4.52.0": + version "4.52.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.52.0.tgz#d92ac6909a29c9f3793e12fdd826d81a0eef0966" + integrity sha512-U1vVzvSWtSMWKKrGoROPBXMh3Vwn93TA9V35PldokHGqiUbF6erSzox/5qrSMKp6SzakvyjcPiVF8yB1xKr9Pg== + +"@rollup/rollup-linux-ppc64-gnu@4.52.0": + version "4.52.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.52.0.tgz#01aacb8e24c41fc5bed2d592c34c210e92975cd3" + integrity sha512-X/4WfuBAdQRH8cK3DYl8zC00XEE6aM472W+QCycpQJeLWVnHfkv7RyBFVaTqNUMsTgIX8ihMjCvFF9OUgeABzw== + +"@rollup/rollup-linux-riscv64-gnu@4.52.0": + version "4.52.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.52.0.tgz#fe3224c04b005a378b22f53f3be718c6c175d782" + integrity sha512-xIRYc58HfWDBZoLmWfWXg2Sq8VCa2iJ32B7mqfWnkx5mekekl0tMe7FHpY8I72RXEcUkaWawRvl3qA55og+cwQ== + +"@rollup/rollup-linux-riscv64-musl@4.52.0": + version "4.52.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.52.0.tgz#ff25daa05f99c77f43e4d8eef02d57c231dac6ed" + integrity sha512-mbsoUey05WJIOz8U1WzNdf+6UMYGwE3fZZnQqsM22FZ3wh1N887HT6jAOjXs6CNEK3Ntu2OBsyQDXfIjouI4dw== + +"@rollup/rollup-linux-s390x-gnu@4.52.0": + version "4.52.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.52.0.tgz#7afac92ea34b129e1430351f615b9f6a84f6510d" + integrity sha512-qP6aP970bucEi5KKKR4AuPFd8aTx9EF6BvutvYxmZuWLJHmnq4LvBfp0U+yFDMGwJ+AIJEH5sIP+SNypauMWzg== + +"@rollup/rollup-linux-x64-gnu@4.52.0": + version "4.52.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.52.0.tgz#214b534701614c7502603e2a083bb9f072ae8500" + integrity sha512-nmSVN+F2i1yKZ7rJNKO3G7ZzmxJgoQBQZ/6c4MuS553Grmr7WqR7LLDcYG53Z2m9409z3JLt4sCOhLdbKQ3HmA== + +"@rollup/rollup-linux-x64-musl@4.52.0": + version "4.52.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.52.0.tgz#8bdc313319fb097795b9213782354afeb8452658" + integrity sha512-2d0qRo33G6TfQVjaMR71P+yJVGODrt5V6+T0BDYH4EMfGgdC/2HWDVjSSFw888GSzAZUwuska3+zxNUCDco6rQ== + +"@rollup/rollup-openharmony-arm64@4.52.0": + version "4.52.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.52.0.tgz#3a6050fc85143f14039c2e8f8f6e90e9e60a392c" + integrity sha512-A1JalX4MOaFAAyGgpO7XP5khquv/7xKzLIyLmhNrbiCxWpMlnsTYr8dnsWM7sEeotNmxvSOEL7F65j0HXFcFsw== + +"@rollup/rollup-win32-arm64-msvc@4.52.0": + version "4.52.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.52.0.tgz#7a57e55beeb598b7a27786e95142f39fff5daddb" + integrity sha512-YQugafP/rH0eOOHGjmNgDURrpYHrIX0yuojOI8bwCyXwxC9ZdTd3vYkmddPX0oHONLXu9Rb1dDmT0VNpjkzGGw== + +"@rollup/rollup-win32-ia32-msvc@4.52.0": + version "4.52.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.52.0.tgz#a7a7a1b5d53bd3fdddf494106961c018a39f6f77" + integrity sha512-zYdUYhi3Qe2fndujBqL5FjAFzvNeLxtIqfzNEVKD1I7C37/chv1VxhscWSQHTNfjPCrBFQMnynwA3kpZpZ8w4A== + +"@rollup/rollup-win32-x64-gnu@4.52.0": + version "4.52.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.52.0.tgz#45040d6623b0db5dd3b9ee0054708ba8b25cd787" + integrity sha512-fGk03kQylNaCOQ96HDMeT7E2n91EqvCDd3RwvT5k+xNdFCeMGnj5b5hEgTGrQuyidqSsD3zJDQ21QIaxXqTBJw== + +"@rollup/rollup-win32-x64-msvc@4.52.0": + version "4.52.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.52.0.tgz#79bc6c361bd80134402274e7c4a6bb36c88d50c2" + integrity sha512-6iKDCVSIUQ8jPMoIV0OytRKniaYyy5EbY/RRydmLW8ZR3cEBhxbWl5ro0rkUNe0ef6sScvhbY79HrjRm8i3vDQ== "@samverschueren/stream-to-observable@^0.3.0": version "0.3.1" @@ -27859,33 +27876,35 @@ rollup@3.29.5: optionalDependencies: fsevents "~2.3.2" -rollup@^4.20.0, rollup@^4.24.4, rollup@^4.34.9, rollup@^4.43.0: - version "4.46.2" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-4.46.2.tgz#09b1a45d811e26d09bed63dc3ecfb6831c16ce32" - integrity sha512-WMmLFI+Boh6xbop+OAGo9cQ3OgX9MIg7xOQjn+pTCwOkk+FNDAeAemXkJ3HzDJrVXleLOFVa1ipuc1AmEx1Dwg== +rollup@^4.20.0, rollup@^4.24.4, rollup@^4.34.9, rollup@^4.43.0, rollup@^4.52.0: + version "4.52.0" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-4.52.0.tgz#5a906bf98f7c7a2c08d2b18fbfa52955552423d7" + integrity sha512-+IuescNkTJQgX7AkIDtITipZdIGcWF0pnVvZTWStiazUmcGA2ag8dfg0urest2XlXUi9kuhfQ+qmdc5Stc3z7g== dependencies: "@types/estree" "1.0.8" optionalDependencies: - "@rollup/rollup-android-arm-eabi" "4.46.2" - "@rollup/rollup-android-arm64" "4.46.2" - "@rollup/rollup-darwin-arm64" "4.46.2" - "@rollup/rollup-darwin-x64" "4.46.2" - "@rollup/rollup-freebsd-arm64" "4.46.2" - "@rollup/rollup-freebsd-x64" "4.46.2" - "@rollup/rollup-linux-arm-gnueabihf" "4.46.2" - "@rollup/rollup-linux-arm-musleabihf" "4.46.2" - "@rollup/rollup-linux-arm64-gnu" "4.46.2" - "@rollup/rollup-linux-arm64-musl" "4.46.2" - "@rollup/rollup-linux-loongarch64-gnu" "4.46.2" - "@rollup/rollup-linux-ppc64-gnu" "4.46.2" - "@rollup/rollup-linux-riscv64-gnu" "4.46.2" - "@rollup/rollup-linux-riscv64-musl" "4.46.2" - "@rollup/rollup-linux-s390x-gnu" "4.46.2" - "@rollup/rollup-linux-x64-gnu" "4.46.2" - "@rollup/rollup-linux-x64-musl" "4.46.2" - "@rollup/rollup-win32-arm64-msvc" "4.46.2" - "@rollup/rollup-win32-ia32-msvc" "4.46.2" - "@rollup/rollup-win32-x64-msvc" "4.46.2" + "@rollup/rollup-android-arm-eabi" "4.52.0" + "@rollup/rollup-android-arm64" "4.52.0" + "@rollup/rollup-darwin-arm64" "4.52.0" + "@rollup/rollup-darwin-x64" "4.52.0" + "@rollup/rollup-freebsd-arm64" "4.52.0" + "@rollup/rollup-freebsd-x64" "4.52.0" + "@rollup/rollup-linux-arm-gnueabihf" "4.52.0" + "@rollup/rollup-linux-arm-musleabihf" "4.52.0" + "@rollup/rollup-linux-arm64-gnu" "4.52.0" + "@rollup/rollup-linux-arm64-musl" "4.52.0" + "@rollup/rollup-linux-loong64-gnu" "4.52.0" + "@rollup/rollup-linux-ppc64-gnu" "4.52.0" + "@rollup/rollup-linux-riscv64-gnu" "4.52.0" + "@rollup/rollup-linux-riscv64-musl" "4.52.0" + "@rollup/rollup-linux-s390x-gnu" "4.52.0" + "@rollup/rollup-linux-x64-gnu" "4.52.0" + "@rollup/rollup-linux-x64-musl" "4.52.0" + "@rollup/rollup-openharmony-arm64" "4.52.0" + "@rollup/rollup-win32-arm64-msvc" "4.52.0" + "@rollup/rollup-win32-ia32-msvc" "4.52.0" + "@rollup/rollup-win32-x64-gnu" "4.52.0" + "@rollup/rollup-win32-x64-msvc" "4.52.0" fsevents "~2.3.2" router@^2.2.0: @@ -31210,7 +31229,7 @@ typescript@5.4.5, typescript@~5.4.5: resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611" integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ== -"typescript@>=3 < 6", typescript@^5.4.3, typescript@^5.8.2, typescript@~5.9.2: +"typescript@>=3 < 6", typescript@^5.4.3, typescript@^5.6.3, typescript@^5.8.2, typescript@~5.9.2: version "5.9.2" resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.9.2.tgz#d93450cddec5154a2d5cabe3b8102b83316fb2a6" integrity sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A== From 62edc4edf53755edc337149db13fa567342ea031 Mon Sep 17 00:00:00 2001 From: Bill Glesias Date: Tue, 30 Sep 2025 17:13:24 -0400 Subject: [PATCH 2/4] Update packages/root/README.md Co-authored-by: Jennifer Shehane --- packages/root/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/root/README.md b/packages/root/README.md index 1ffa8cbda6c..34a642da921 100644 --- a/packages/root/README.md +++ b/packages/root/README.md @@ -2,4 +2,4 @@ Bundles the monorepo root `package.json` as an installable package, allowing `@packages/root` to be installed in any context without having a absolute reference ot the root `package.json` -In order to accomplish this, `rollup` is used 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 entrypoints. \ No newline at end of file +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. \ No newline at end of file From bf4f525d2038e2af524d3efbf8566047607d424b Mon Sep 17 00:00:00 2001 From: Bill Glesias Date: Tue, 30 Sep 2025 17:13:30 -0400 Subject: [PATCH 3/4] Update guides/esm-migration.md Co-authored-by: Jennifer Shehane --- guides/esm-migration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/esm-migration.md b/guides/esm-migration.md index a0b0720ddb0..5d06b42ef86 100644 --- a/guides/esm-migration.md +++ b/guides/esm-migration.md @@ -55,7 +55,7 @@ - [x] packages/reporter ✅ **COMPLETED** - [ ] packages/resolve-dist **PARTIAL** - entry point is JS - [ ] packages/rewriter **PARTIAL** - entry point is JS -- [x] packages/root +- [x] packages/root ✅ **COMPLETED** - [x] packages/runner ✅ **COMPLETED** - [ ] packages/scaffold-config **PARTIAL** - entry point is JS - [ ] packages/server **PARTIAL** - many source/test files in JS. highest priority From 8093bd801e916485388b47ce02c68fca779c6ca0 Mon Sep 17 00:00:00 2001 From: Bill Glesias Date: Tue, 30 Sep 2025 17:13:36 -0400 Subject: [PATCH 4/4] Update packages/root/README.md Co-authored-by: Jennifer Shehane --- packages/root/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/root/README.md b/packages/root/README.md index 34a642da921..1d6efaa980c 100644 --- a/packages/root/README.md +++ b/packages/root/README.md @@ -1,5 +1,5 @@ # Purpose -Bundles the monorepo root `package.json` as an installable package, allowing `@packages/root` to be installed in any context without having a absolute reference ot the root `package.json` +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. \ No newline at end of file