From 7acf49c3340684aacf32d055142c439506420cfb Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Fri, 30 Dec 2022 16:49:29 -0500 Subject: [PATCH] CLI: Add peer dependency on react --- code/lib/cli/package.json | 4 ++++ code/yarn.lock | 3 +++ 2 files changed, 7 insertions(+) diff --git a/code/lib/cli/package.json b/code/lib/cli/package.json index 46a90823d7f3..56715dd41f87 100644 --- a/code/lib/cli/package.json +++ b/code/lib/cli/package.json @@ -88,6 +88,10 @@ "strip-json-comments": "^3.1.1", "typescript": "~4.9.3" }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" + }, "publishConfig": { "access": "public" }, diff --git a/code/yarn.lock b/code/yarn.lock index 492587967190..cb9d3fff415e 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -6264,6 +6264,9 @@ __metadata: ts-dedent: ^2.0.0 typescript: ~4.9.3 util-deprecate: ^1.0.2 + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 bin: getstorybook: ./bin/index.js sb: ./bin/index.js