create-module-federation 0.0.0-next-20250304120228 → 0.0.0-next-20250305075427
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/templates/lib-common/module-federation.config.ts.handlebars +6 -3
- package/templates/provider-rslib-storybook-ts/package.json.handlebars +3 -3
- package/templates/provider-rslib-ts/package.json.handlebars +4 -4
- package/templates/rsbuild-common/package.json.handlebars +2 -2
package/dist/index.js
CHANGED
|
@@ -308,7 +308,7 @@ async function create({ name, templates }) {
|
|
|
308
308
|
const nextSteps = [
|
|
309
309
|
`cd ${targetDir}`,
|
|
310
310
|
`${pkgManager} install`,
|
|
311
|
-
`${pkgManager} run dev`
|
|
311
|
+
`${pkgManager} run ${'lib' === projectType ? 'mf-dev' : 'dev'}`
|
|
312
312
|
];
|
|
313
313
|
(0, __WEBPACK_EXTERNAL_MODULE__clack_prompts_3cae1695__.note)(nextSteps.join('\n'), 'Next steps');
|
|
314
314
|
(0, __WEBPACK_EXTERNAL_MODULE__clack_prompts_3cae1695__.outro)('Done.');
|
package/package.json
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import {createModuleFederationConfig} from '@module-federation/rsbuild-plugin';
|
|
2
|
+
import pkg from './package.json';
|
|
3
|
+
|
|
4
|
+
export default createModuleFederationConfig({
|
|
5
|
+
name: pkg.name,
|
|
3
6
|
exposes: {
|
|
4
7
|
'.': './src/index.tsx',
|
|
5
8
|
},
|
|
@@ -11,4 +14,4 @@ export default {
|
|
|
11
14
|
singleton: true,
|
|
12
15
|
},
|
|
13
16
|
},
|
|
14
|
-
}
|
|
17
|
+
})
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"mf-dev": "rslib mf-dev"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@rsbuild/core": "^1.2.
|
|
25
|
-
"@rsbuild/plugin-react": "^1.1.
|
|
26
|
-
"@rslib/core": "^0.3
|
|
24
|
+
"@rsbuild/core": "^1.2.15",
|
|
25
|
+
"@rsbuild/plugin-react": "^1.1.1",
|
|
26
|
+
"@rslib/core": "^0.5.3",
|
|
27
27
|
"@storybook/addon-essentials": "^8.4.7",
|
|
28
28
|
"@storybook/addon-interactions": "^8.4.7",
|
|
29
29
|
"@storybook/addon-links": "^8.4.7",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"mf-dev": "rslib mf-dev"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@rsbuild/core": "^1.2.
|
|
23
|
-
"@rsbuild/plugin-react": "^1.1.
|
|
24
|
-
"@rslib/core": "^0.3
|
|
22
|
+
"@rsbuild/core": "^1.2.15",
|
|
23
|
+
"@rsbuild/plugin-react": "^1.1.1",
|
|
24
|
+
"@rslib/core": "^0.5.3",
|
|
25
25
|
"@types/react": "^18.3.11",
|
|
26
26
|
"react": "^18.3.1",
|
|
27
27
|
"typescript": "^5.7.3",
|
|
28
|
-
"@module-federation/rsbuild-plugin":"^0.8.9"
|
|
28
|
+
"@module-federation/rsbuild-plugin":"^0.8.9"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"react": ">=16.9.0",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"react-dom": "^19.0.0"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@rsbuild/core": "^1.
|
|
16
|
-
"@rsbuild/plugin-react": "^1.
|
|
15
|
+
"@rsbuild/core": "^1.2.15",
|
|
16
|
+
"@rsbuild/plugin-react": "^1.1.1",
|
|
17
17
|
"@types/react": "^19.0.0",
|
|
18
18
|
"@types/react-dom": "^19.0.0",
|
|
19
19
|
"typescript": "^5.7.2",
|