Skip to content

Commit

Permalink
fix: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrieLii committed Feb 21, 2024
1 parent 11cfbaa commit 8cd2ef9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/generator/new-action/src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const main = async () => {
const program = new Command();
program
.option('--solution <solution>', 'solution', 'mwa')
.option('--config <config>', 'config', '')
.option('--config <config>', 'config', '{}')
.option('--root-path <rootPath>', 'project root path', '')
.action(async params => {
const { solution, config: configStr, rootPath } = params;
Expand Down
2 changes: 1 addition & 1 deletion packages/toolkit/utils/src/cli/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const newAction = async (
'--yes',
`@modern-js/new-action@${process.env.MODERN_JS_VERSION ?? 'latest'}`,
`--config=${JSON.stringify(config)}`,
`--solution=mwa${solution}`,
`--solution=${solution}`,
],
{
stderr: 'inherit',
Expand Down

0 comments on commit 8cd2ef9

Please sign in to comment.