@@ -53,35 +53,30 @@ By default, the extension will look for the file that calls the TypeScript repla
5353Your entrypoint file should import the replayer adapter and your workflow:
5454
5555``` typescript
56- import { exampleWorkflow } from ' ./workflow' ;
57- import { ReplayMode , replay } from ' @phuongdnguyen/replayer-adapter-nodejs' ;
56+ import { exampleWorkflow } from " ./workflow"
57+ import { ReplayMode , replay } from " @phuongdnguyen/replayer-adapter-nodejs"
5858
5959async function main() {
60- const opts = {
61- mode: ReplayMode .IDE ,
62- workerReplayOptions: {
63- workflowsPath: require .resolve (' ./workflow.ts' ),
64- bundlerOptions: {
65- ignoreModules: [
66- ' fs/promises' ,
67- ' @temporalio/worker' ,
68- ' path' ,
69- ' child_process'
70- ]
71- },
72- debugMode: true ,
73- },
74- debuggerAddr: ' http://127.0.0.1:54578'
75- };
76-
77- await replay (opts , exampleWorkflow );
60+ const opts = {
61+ mode: ReplayMode .IDE ,
62+ workerReplayOptions: {
63+ workflowsPath: require .resolve (" ./workflow.ts" ),
64+ bundlerOptions: {
65+ ignoreModules: [" fs/promises" , " @temporalio/worker" , " path" , " child_process" ],
66+ },
67+ debugMode: true ,
68+ },
69+ debuggerAddr: " http://127.0.0.1:54578" ,
70+ }
71+
72+ await replay (opts , exampleWorkflow )
7873}
7974
8075if (require .main === module ) {
81- main ().catch ((error ) => {
82- console .error (' Error:' , error );
83- process .exit (1 );
84- });
76+ main ().catch ((error ) => {
77+ console .error (" Error:" , error )
78+ process .exit (1 )
79+ })
8580}
8681```
8782
@@ -140,7 +135,7 @@ async def main():
140135 try :
141136 # Set up ide mode
142137 set_replay_mode(ReplayMode.IDE )
143-
138+
144139 # Create replay options
145140 opts = ReplayOptions(
146141 worker_replay_options = {},
0 commit comments