From b4c006e45660dccc5f2e845fc72038141ac0d078 Mon Sep 17 00:00:00 2001 From: Emma Hamilton Date: Fri, 24 Jul 2026 14:09:11 +1000 Subject: [PATCH] Remove optionality in react-aria/react-stately/@keystar/ui peer deps --- .changeset/few-stingrays-shake.md | 6 ++++++ design-system/pkg/package.json | 6 ------ packages/keystatic/package.json | 11 ----------- 3 files changed, 6 insertions(+), 17 deletions(-) create mode 100644 .changeset/few-stingrays-shake.md diff --git a/.changeset/few-stingrays-shake.md b/.changeset/few-stingrays-shake.md new file mode 100644 index 000000000..387a35979 --- /dev/null +++ b/.changeset/few-stingrays-shake.md @@ -0,0 +1,6 @@ +--- +'@keystatic/core': patch +'@keystar/ui': patch +--- + +Make `react-aria`, `react-stately` and `@keystar/ui` non-optional peer dependencies + normal dependencies instead of optional peer dependencies + normal dependencies to fix installing with pnpm diff --git a/design-system/pkg/package.json b/design-system/pkg/package.json index 1aebbc738..82df20513 100644 --- a/design-system/pkg/package.json +++ b/design-system/pkg/package.json @@ -1516,12 +1516,6 @@ "peerDependenciesMeta": { "next": { "optional": true - }, - "react-aria": { - "optional": true - }, - "react-stately": { - "optional": true } }, "imports": { diff --git a/packages/keystatic/package.json b/packages/keystatic/package.json index 2c2fec9dc..b41b8ac43 100644 --- a/packages/keystatic/package.json +++ b/packages/keystatic/package.json @@ -210,17 +210,6 @@ "react-dom": "^18.2.0 || ^19.0.0", "react-stately": "catalog:" }, - "peerDependenciesMeta": { - "@keystar/ui": { - "optional": true - }, - "react-aria": { - "optional": true - }, - "react-stately": { - "optional": true - } - }, "preconstruct": { "entrypoints": [ "index.ts",