Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
682 changes: 182 additions & 500 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

10 changes: 3 additions & 7 deletions rslib/module-federation/mf-react-component/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ function getAbsolutePath(value: string): any {
}

const config: StorybookConfig = {
stories: [
'../stories/**/*.mdx',
'../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)',
],
stories: ['../stories/**/*.mdx', '../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
framework: {
name: getAbsolutePath('storybook-react-rsbuild'),
options: {},
Expand All @@ -31,11 +28,10 @@ const config: StorybookConfig = {
},
},
{
name: '@module-federation/storybook-addon/preset',
name: getAbsolutePath('@module-federation/storybook-addon/preset'),
options: {
remotes: {
'rslib-module':
'rslib-module@http://localhost:3001/mf/mf-manifest.json',
'rslib-module': 'rslib-module@http://localhost:3001/mf/mf-manifest.json',
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion rslib/module-federation/mf-react-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"http-server": "^14.1.1",
"react": "^19.2.0",
"react-dom": "^19.2.0",
"storybook": "^9.1.16",
"storybook": "^10.0.2",
"storybook-addon-rslib": "^2.1.3",
"storybook-react-rsbuild": "^2.1.3"
},
Expand Down
12 changes: 6 additions & 6 deletions rslib/react-storybook/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { createRequire } from 'node:module';
import { dirname, join } from 'node:path';
import type { StorybookConfig } from 'storybook-react-rsbuild';

const require = createRequire(import.meta.url);

/**
* This function is used to resolve the absolute path of a package.
* It is needed in projects that use Yarn PnP or are set up within a monorepo.
Expand All @@ -10,13 +13,10 @@ function getAbsolutePath(value: string): any {
}

const config: StorybookConfig = {
stories: [
'../stories/**/*.mdx',
'../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)',
],
stories: ['../stories/**/*.mdx', '../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
'@storybook/addon-docs',
'@storybook/addon-onboarding',
getAbsolutePath('@storybook/addon-docs'),
getAbsolutePath('@storybook/addon-onboarding'),
{
name: getAbsolutePath('storybook-addon-rslib'),
},
Expand Down
9 changes: 5 additions & 4 deletions rslib/react-storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
"@rsbuild/core": "~1.6.0",
"@rsbuild/plugin-react": "^1.4.1",
"@rslib/core": "^0.17.0",
"@storybook/addon-docs": "^9.1.16",
"@storybook/addon-onboarding": "^9.1.16",
"@storybook/react": "^9.1.16",
"@storybook/addon-docs": "^10.0.2",
"@storybook/addon-onboarding": "^10.0.2",
"@storybook/react": "^10.0.2",
"@types/react": "^19.2.2",
"react": "^19.2.0",
"storybook": "^9.1.16",
"react-dom": "^19.2.0",
"storybook": "^10.0.2",
"storybook-addon-rslib": "^2.1.3",
"storybook-react-rsbuild": "^2.1.3",
"typescript": "^5.9.3"
Expand Down
12 changes: 6 additions & 6 deletions rslib/vue-storybook/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { createRequire } from 'node:module';
import { dirname, join } from 'node:path';
import type { StorybookConfig } from 'storybook-vue3-rsbuild';

const require = createRequire(import.meta.url);

/**
* This function is used to resolve the absolute path of a package.
* It is needed in projects that use Yarn PnP or are set up within a monorepo.
Expand All @@ -10,13 +13,10 @@ function getAbsolutePath(value) {
}

const config: StorybookConfig = {
stories: [
'../stories/**/*.mdx',
'../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)',
],
stories: ['../stories/**/*.mdx', '../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
'@storybook/addon-docs',
'@storybook/addon-onboarding',
getAbsolutePath('@storybook/addon-docs'),
getAbsolutePath('@storybook/addon-onboarding'),
{
name: getAbsolutePath('storybook-addon-rslib'),
},
Expand Down
8 changes: 4 additions & 4 deletions rslib/vue-storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
"devDependencies": {
"@rsbuild/core": "~1.6.0",
"@rslib/core": "^0.17.0",
"@storybook/addon-docs": "^9.1.16",
"@storybook/addon-onboarding": "^9.1.16",
"@storybook/vue3": "^9.1.16",
"@storybook/addon-docs": "^10.0.2",
"@storybook/addon-onboarding": "^10.0.2",
"@storybook/vue3": "^10.0.2",
"rsbuild-plugin-unplugin-vue": "^0.1.0",
"storybook": "^9.1.16",
"storybook": "^10.0.2",
"storybook-addon-rslib": "^2.1.3",
"storybook-vue3-rsbuild": "^2.1.3",
"typescript": "^5.9.3",
Expand Down