From a1f2da6152f7064f29ddfb35985f05fd46277bca Mon Sep 17 00:00:00 2001 From: jserfeng <1114550440@qq.com> Date: Mon, 11 Sep 2023 21:10:10 +0800 Subject: [PATCH] fix: fix unmet peers --- package.json | 5 +++++ packages/storybook/builder/package.json | 10 ++++------ packages/storybook/builder/src/plugin-storybook.ts | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 7151d018af9b..bfc2b7da2793 100644 --- a/package.json +++ b/package.json @@ -90,6 +90,11 @@ "@types/react": "^18", "@types/react-dom": "^18" }, + "peerDependencyRules": { + "allowedVersions": { + "@mdx-js/react@^1.6.22>react": "18" + } + }, "allowedDeprecatedVersions": { "@babel/plugin-proposal-class-properties": "7.18.6", "@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6", diff --git a/packages/storybook/builder/package.json b/packages/storybook/builder/package.json index 2bd126dc151f..e5973320127c 100644 --- a/packages/storybook/builder/package.json +++ b/packages/storybook/builder/package.json @@ -44,7 +44,6 @@ "@modern-js/runtime": "workspace:*", "@modern-js/utils": "workspace:*", "@rspack/dev-client": "0.3.2", - "@storybook/api": "^7.4.0", "@storybook/components": "^7.4.0", "@storybook/core-common": "^7.4.0", "@storybook/csf-plugin": "^7.4.0", @@ -59,7 +58,7 @@ "@types/webpack-hot-middleware": "^2.25.6", "ast-types": "^0.14.2", "babel-plugin-react-docgen": "^4.2.1", - "minimatch": "^3.0.4", + "minimatch": "^9.0.3", "react-docgen": "6.0.0-alpha.3", "remark-external-links": "^9.0.1", "remark-slug": "^7.0.1", @@ -71,12 +70,11 @@ "@modern-js/builder-webpack-provider": "workspace:*", "@storybook/types": "^7.4.0", "@types/babel__core": "^7.20.1", - "@types/express": "^4.17.13", - "@types/minimatch": "^3.0.5" + "@types/express": "^4.17.13" }, "peerDependencies": { - "@modern-js/builder-rspack-provider": "workspace:^2.33.1", - "@modern-js/builder-webpack-provider": "workspace:^2.33.1" + "@modern-js/builder-rspack-provider": "workspace:^2.34.0", + "@modern-js/builder-webpack-provider": "workspace:^2.34.0" }, "peerDependenciesMeta": { "@modern-js/builder-rspack-provider": { diff --git a/packages/storybook/builder/src/plugin-storybook.ts b/packages/storybook/builder/src/plugin-storybook.ts index 4c07b1e5b987..3c94effe8881 100644 --- a/packages/storybook/builder/src/plugin-storybook.ts +++ b/packages/storybook/builder/src/plugin-storybook.ts @@ -32,7 +32,7 @@ import type { RspackConfig, } from '@modern-js/builder-rspack-provider'; import { unplugin as csfPlugin } from '@storybook/csf-plugin'; -import minimatch from 'minimatch'; +import { minimatch } from 'minimatch'; import { AllBuilderConfig, FrameworkOptions } from './types'; import { toImportFn, virtualModule, maybeGetAbsolutePath } from './utils'; import { applyDocgenRspack, applyDocgenWebpack } from './docgen';