File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
packages/solutions/app-tools/src/run Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export interface RunOptions {
15
15
initialLog ?: string ;
16
16
version : string ;
17
17
}
18
- export async function run ( {
18
+ export async function createRunOptions ( {
19
19
cwd,
20
20
initialLog,
21
21
metaName = 'modern-js' ,
@@ -83,12 +83,17 @@ export async function run({
83
83
84
84
const plugins = await loadInternalPlugins ( appDirectory , internalPlugins ) ;
85
85
86
- await CLIPluginRun ( {
86
+ return {
87
87
cwd,
88
88
initialLog : initialLog || `Modern.js Framework v${ version } ` ,
89
89
configFile : finalConfigFile ,
90
90
metaName,
91
91
internalPlugins : plugins ,
92
92
handleSetupResult,
93
- } ) ;
93
+ } ;
94
+ }
95
+
96
+ export async function run ( options : RunOptions ) {
97
+ const runOptions = await createRunOptions ( options ) ;
98
+ await CLIPluginRun ( runOptions ) ;
94
99
}
You can’t perform that action at this time.
0 commit comments