@@ -13,7 +13,11 @@ export type Inject = {
13
13
getIndexHtml : ( ) => string ;
14
14
} ;
15
15
16
- async function actualRun ( appInfo : AppInfo , options : Options , inject : Inject ) : Promise < void > {
16
+ async function actualRun (
17
+ appInfo : AppInfo ,
18
+ options : Options ,
19
+ inject : Inject ,
20
+ ) : Promise < void > {
17
21
const { injectFrontend, injectSim, getIndexHtml } = inject ;
18
22
options . basePort = await detectPort ( options . basePort ) ;
19
23
const instances = new Instances ( appInfo , injectSim , options ) ;
@@ -39,7 +43,11 @@ async function actualRun(appInfo: AppInfo, options: Options, inject: Inject): Pr
39
43
open ( "http://localhost:" + options . basePort ) ;
40
44
}
41
45
42
- export async function run ( locationStr : string , options : Options , inject : Inject ) : Promise < void > {
46
+ export async function run (
47
+ locationStr : string ,
48
+ options : Options ,
49
+ inject : Inject ,
50
+ ) : Promise < void > {
43
51
let location : Location ;
44
52
try {
45
53
location = getLocation ( locationStr ) ;
@@ -60,7 +68,7 @@ export async function run(locationStr: string, options: Options, inject: Inject)
60
68
console . log ( "Starting webxdc project in:" , locationStr ) ;
61
69
62
70
try {
63
- const appInfo = await getAppInfo ( location )
71
+ const appInfo = await getAppInfo ( location ) ;
64
72
await actualRun ( appInfo , options , inject ) ;
65
73
} catch ( e ) {
66
74
if ( e instanceof AppInfoError ) {
0 commit comments