create-module-federation 0.0.0-next-20250310022208 → 0.0.0-next-20250314064640
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 +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -154,7 +154,7 @@ async function getAppTemplateName({ roleType, framework }, { template }) {
|
|
|
154
154
|
if (template) return `${template}-ts`;
|
|
155
155
|
return `${roleType}-${framework}-ts`;
|
|
156
156
|
}
|
|
157
|
-
async function getLibTemplateName({ template }) {
|
|
157
|
+
async function getLibTemplateName({ template, role }) {
|
|
158
158
|
if (template) return `${template}-ts`;
|
|
159
159
|
const templateName = checkCancel(await (0, __WEBPACK_EXTERNAL_MODULE__clack_prompts_3cae1695__.select)({
|
|
160
160
|
message: 'Select template',
|
|
@@ -175,7 +175,7 @@ async function getLibTemplateName({ template }) {
|
|
|
175
175
|
}
|
|
176
176
|
].filter(Boolean)
|
|
177
177
|
}));
|
|
178
|
-
const roleType = "provider";
|
|
178
|
+
const roleType = role || "provider";
|
|
179
179
|
if (!tools || !Object.keys(tools).length) return `${roleType}-${templateName}-ts`;
|
|
180
180
|
return `${roleType}-${templateName}-${tools[0]}-ts`;
|
|
181
181
|
}
|
|
@@ -354,8 +354,8 @@ async function create({ name, templates }) {
|
|
|
354
354
|
const TEMPLATES = [
|
|
355
355
|
'provider-modern',
|
|
356
356
|
'provider-rsbuild',
|
|
357
|
-
'rslib',
|
|
358
|
-
'rslib-storybook',
|
|
357
|
+
'provider-rslib',
|
|
358
|
+
'provider-rslib-storybook',
|
|
359
359
|
'consumer-modern',
|
|
360
360
|
'consumer-rsbuild'
|
|
361
361
|
];
|
package/package.json
CHANGED