Skip to content

Commit

Permalink
fix: storybook next generator pkg name (#4864)
Browse files Browse the repository at this point in the history
  • Loading branch information
caohuilin committed Oct 26, 2023
1 parent 3304d33 commit 13afea7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const ModuleNewActionGenerators: Partial<
[ActionFunction.Test]: '@modern-js/module-test-generator',
[ActionFunction.TailwindCSS]: '@modern-js/tailwindcss-generator',
[ActionFunction.Storybook]: '@modern-js/storybook-generator',
[ActionFunction.StorybookV7]: '@modern-js/storybook-generator-next',
[ActionFunction.StorybookV7]: '@modern-js/storybook-next-generator',
[ActionFunction.RuntimeApi]: '@modern-js/dependence-generator',
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export const MWANewActionGenerators: Record<
[ActionFunction.MicroFrontend]: '@modern-js/dependence-generator',
[ActionFunction.Test]: '@modern-js/test-generator',
[ActionFunction.Storybook]: '@modern-js/dependence-generator',
[ActionFunction.StorybookV7]: '@modern-js/storybook-generator-next',
[ActionFunction.StorybookV7]: '@modern-js/storybook-next-generator',
[ActionFunction.SSG]: '@modern-js/ssg-generator',
[ActionFunction.Polyfill]: '@modern-js/dependence-generator',
[ActionFunction.Proxy]: '@modern-js/dependence-generator',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@modern-js/storybook-generator-next",
"name": "@modern-js/storybook-next-generator",
"description": "A Progressive React Framework for modern web development.",
"homepage": "https://modernjs.dev",
"bugs": "https://github.com/web-infra-dev/modern.js/issues",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,11 @@ export default async (context: GeneratorContext, generator: GeneratorCore) => {
i18n.changeLanguage({ locale });
appApi.i18n.changeLanguage({ locale });

generator.logger.debug(`start run @modern-js/storybook-generator-next`);
generator.logger.debug(`start run @modern-js/storybook-next-generator`);
generator.logger.debug(`context=${JSON.stringify(context)}`);
generator.logger.debug(`context.data=${JSON.stringify(context.data)}`);

await handleTemplateFile(context, appApi, generator);

generator.logger.debug(`forge @modern-js/storybook-generator-next succeed `);
generator.logger.debug(`forge @modern-js/storybook-next-generator succeed `);
};
2 changes: 1 addition & 1 deletion tests/generator/utils/prepare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function addNewActionDevDependence(repoCwd: string) {
'@modern-js/repo-generator': 'workspace:*',
'@modern-js/tailwindcss-generator': 'workspace:*',
'@modern-js/storybook-generator': 'workspace:*',
'@modern-js/storybook-generator-next': 'workspace:*',
'@modern-js/storybook-next-generator': 'workspace:*',
'@modern-js/ssg-generator': 'workspace:*',
'@modern-js/module-test-generator': 'workspace:*',
'@modern-js/rspack-generator': 'workspace:*',
Expand Down

0 comments on commit 13afea7

Please sign in to comment.