diff --git a/packages/framer-motion/package.json b/packages/framer-motion/package.json index a4b2242dff..8ac777d322 100644 --- a/packages/framer-motion/package.json +++ b/packages/framer-motion/package.json @@ -69,10 +69,14 @@ "tslib": "^2.4.0" }, "peerDependencies": { + "@emotion/is-prop-valid": "*", "react": "^18.0.0", "react-dom": "^18.0.0" }, "peerDependenciesMeta": { + "@emotion/is-prop-valid": { + "optional": true + }, "react": { "optional": true }, @@ -80,9 +84,6 @@ "optional": true } }, - "optionalDependencies": { - "@emotion/is-prop-valid": "^0.8.2" - }, "bundlesize": [ { "path": "./dist/size-rollup-motion.js", diff --git a/yarn.lock b/yarn.lock index 385956775d..21c654bceb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1395,7 +1395,7 @@ __metadata: languageName: node linkType: hard -"@emotion/is-prop-valid@npm:^0.8.1, @emotion/is-prop-valid@npm:^0.8.2": +"@emotion/is-prop-valid@npm:^0.8.1": version: 0.8.8 resolution: "@emotion/is-prop-valid@npm:0.8.8" dependencies: @@ -8029,15 +8029,14 @@ __metadata: version: 0.0.0-use.local resolution: "framer-motion@workspace:packages/framer-motion" dependencies: - "@emotion/is-prop-valid": ^0.8.2 tslib: ^2.4.0 peerDependencies: + "@emotion/is-prop-valid": "*" react: ^18.0.0 react-dom: ^18.0.0 - dependenciesMeta: + peerDependenciesMeta: "@emotion/is-prop-valid": optional: true - peerDependenciesMeta: react: optional: true react-dom: