File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
packages/generator/new-action/src Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ export const ModuleNewAction = async (options: IModuleNewActionOption) => {
91
91
} ) ;
92
92
93
93
if ( ! hasOption ) {
94
- smith . logger . warn ( 'no option can be enabled' ) ;
94
+ smith . logger . warn ( 'No option can be enabled, exit 1.' , funcMap ) ;
95
95
// eslint-disable-next-line no-process-exit
96
96
process . exit ( 1 ) ;
97
97
}
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ async function addNewActionDevDependence(repoCwd: string) {
9
9
'packages/generator/new-action/package.json' ,
10
10
) ;
11
11
const pkgJSON = JSON . parse ( await fs . readFile ( actionPath , 'utf-8' ) ) ;
12
+
13
+ // Should add new generator below for testing
12
14
pkgJSON . devDependencies = {
13
15
...pkgJSON . devDependencies ,
14
16
'@modern-js/bff-generator' : 'workspace:*' ,
@@ -23,6 +25,7 @@ async function addNewActionDevDependence(repoCwd: string) {
23
25
'@modern-js/ssg-generator' : 'workspace:*' ,
24
26
'@modern-js/module-test-generator' : 'workspace:*' ,
25
27
'@modern-js/rspack-generator' : 'workspace:*' ,
28
+ '@modern-js/module-doc-generator' : 'workspace:*' ,
26
29
} ;
27
30
await fs . writeFile (
28
31
actionPath ,
You can’t perform that action at this time.
0 commit comments