diff --git a/cli/CHANGELOG.md b/cli/CHANGELOG.md index 987778181fa5..8993531e7e49 100644 --- a/cli/CHANGELOG.md +++ b/cli/CHANGELOG.md @@ -12,6 +12,7 @@ _Released 05/09/2023 (PENDING)_ - Fixed an issue in Electron where devtools gets out of sync with the DOM occasionally. Addresses [#15932](https://github.com/cypress-io/cypress/issues/15932). - Updated the Chromium renderer process crash message to be more terse. Addressed in [#26597](https://github.com/cypress-io/cypress/pull/26597). - Fixed an issue with `CYPRESS_DOWNLOAD_PATH_TEMPLATE` regex to allow multiple replacements. Addresses [#23670](https://github.com/cypress-io/cypress/issues/23670). +- Moved `types` condition to the front of `package.json#exports` since keys there are meant to be order-sensitive. Fixed in [#26630](https://github.com/cypress-io/cypress/pull/26630). **Dependency Updates:** diff --git a/cli/package.json b/cli/package.json index ec12f4cbd10d..e0d0a3303fb5 100644 --- a/cli/package.json +++ b/cli/package.json @@ -120,47 +120,47 @@ "types": "types", "exports": { ".": { + "types": "./types/index.d.ts", "import": "./index.mjs", - "require": "./index.js", - "types": "./types/index.d.ts" + "require": "./index.js" }, "./vue": { + "types": "./vue/dist/index.d.ts", "import": "./vue/dist/cypress-vue.esm-bundler.js", - "require": "./vue/dist/cypress-vue.cjs.js", - "types": "./vue/dist/index.d.ts" + "require": "./vue/dist/cypress-vue.cjs.js" }, "./vue2": { + "types": "./vue2/dist/index.d.ts", "import": "./vue2/dist/cypress-vue2.esm-bundler.js", - "require": "./vue2/dist/cypress-vue2.cjs.js", - "types": "./vue2/dist/index.d.ts" + "require": "./vue2/dist/cypress-vue2.cjs.js" }, "./package.json": { "import": "./package.json", "require": "./package.json" }, "./react": { + "types": "./react/dist/index.d.ts", "import": "./react/dist/cypress-react.esm-bundler.js", - "require": "./react/dist/cypress-react.cjs.js", - "types": "./react/dist/index.d.ts" + "require": "./react/dist/cypress-react.cjs.js" }, "./react18": { + "types": "./react18/dist/index.d.ts", "import": "./react18/dist/cypress-react.esm-bundler.js", - "require": "./react18/dist/cypress-react.cjs.js", - "types": "./react18/dist/index.d.ts" + "require": "./react18/dist/cypress-react.cjs.js" }, "./mount-utils": { - "require": "./mount-utils/dist/index.js", - "types": "./mount-utils/dist/index.d.ts" + "types": "./mount-utils/dist/index.d.ts", + "require": "./mount-utils/dist/index.js" }, "./angular": { + "types": "./angular/dist/index.d.ts", "import": "./angular/dist/index.js", - "require": "./angular/dist/index.js", - "types": "./angular/dist/index.d.ts" + "require": "./angular/dist/index.js" }, "./svelte": { + "types": "./svelte/dist/index.d.ts", "import": "./svelte/dist/cypress-svelte.esm-bundler.js", - "require": "./svelte/dist/cypress-svelte.cjs.js", - "types": "./svelte/dist/index.d.ts" + "require": "./svelte/dist/cypress-selte.cjs.js" } }, "workspaces": {