@@ -3,7 +3,12 @@ import chalkTemplate from 'chalk-template';
33import { createWriteStream , existsSync , readFileSync , writeFileSync } from 'fs' ;
44import path , { join } from 'path' ;
55import YAML from 'yaml' ;
6- import { APIClient , type APIEvent , type ChipsLogPayload , type SerialMonitorDataPayload } from 'wokwi-client-js' ;
6+ import {
7+ APIClient ,
8+ type APIEvent ,
9+ type ChipsLogPayload ,
10+ type SerialMonitorDataPayload ,
11+ } from 'wokwi-client-js' ;
712import { WebSocketTransport } from './transport/WebSocketTransport.js' ;
813import { DEFAULT_SERVER } from './constants.js' ;
914import { createSerialMonitorWritable } from './utils/serialMonitorWritable.js' ;
@@ -297,7 +302,10 @@ async function main() {
297302
298303 for ( const chip of chips ) {
299304 await client . fileUpload ( `${ chip . name } .chip.json` , readFileSync ( chip . jsonPath , 'utf-8' ) ) ;
300- await client . fileUpload ( `${ chip . name } .chip.wasm` , new Uint8Array ( readFileSync ( chip . wasmPath ) ) ) ;
305+ await client . fileUpload (
306+ `${ chip . name } .chip.wasm` ,
307+ new Uint8Array ( readFileSync ( chip . wasmPath ) ) ,
308+ ) ;
301309 }
302310
303311 const promises = [ ] ;
@@ -374,7 +382,7 @@ async function main() {
374382
375383 if ( promises . length === 0 ) {
376384 // wait forever
377- await new Promise ( ( ) => { } ) ;
385+ await new Promise ( ( ) => { } ) ;
378386 }
379387
380388 // wait until the scenario finishes or a timeout occurs
0 commit comments