Skip to content

Commit

Permalink
fix: reduce deps
Browse files Browse the repository at this point in the history
  • Loading branch information
JSerFeng committed Sep 12, 2023
1 parent c048491 commit 4b82efe
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
4 changes: 1 addition & 3 deletions packages/storybook/builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"@storybook/core-common": "^7.4.0",
"@storybook/csf-plugin": "^7.4.0",
"@storybook/global": "^5.0.0",
"@storybook/manager-api": "^7.4.0",
"@storybook/mdx1-csf": "^1.0.0",
"@storybook/mdx2-csf": "^1.1.0",
"@storybook/preview": "^7.4.0",
Expand Down Expand Up @@ -77,8 +76,7 @@
},
"peerDependencies": {
"@modern-js/builder-rspack-provider": "workspace:^2.33.1",
"@modern-js/builder-webpack-provider": "workspace:^2.33.1",
"react": "*"
"@modern-js/builder-webpack-provider": "workspace:^2.33.1"
},
"peerDependenciesMeta": {
"@modern-js/builder-rspack-provider": {
Expand Down
8 changes: 0 additions & 8 deletions packages/storybook/builder/src/plugin-storybook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,19 +164,11 @@ async function prepareStorybookModules(
) {
const mappings = await createStorybookModules(cwd, options, storyPatterns);

const managerAPIPath = maybeGetAbsolutePath(`@storybook/manager-api`);
const componentsPath = maybeGetAbsolutePath(`@storybook/components`);
const routerPath = maybeGetAbsolutePath(`@storybook/router`);
const themingPath = maybeGetAbsolutePath(`@storybook/theming`);

const storybookPaths: Record<string, string> = {
...(managerAPIPath
? {
// TODO: deprecated, remove in 8.0
[`@storybook/api`]: managerAPIPath,
[`@storybook/manager-api`]: managerAPIPath,
}
: {}),
...(componentsPath
? {
[`@storybook/components`]: componentsPath,
Expand Down
2 changes: 0 additions & 2 deletions packages/storybook/framework/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@
"author": "",
"license": "MIT",
"dependencies": {
"@modern-js/builder-shared": "workspace:*",
"@modern-js/storybook-builder": "workspace:*",
"@modern-js/utils": "workspace:*",
"@storybook/react": "^7.4.0",
"storybook": "^7.4.0"
},
Expand Down

0 comments on commit 4b82efe

Please sign in to comment.