Skip to content

Commit bd26a1d

Browse files
committed
built-in some of the options
1 parent 441e843 commit bd26a1d

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

example/js/vscode-replayer.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,7 @@ async function main() {
1414
mode: ReplayMode.IDE,
1515
workerReplayOptions: {
1616
workflowsPath: require.resolve('./workflow.ts'),
17-
bundlerOptions: {
18-
ignoreModules: [
19-
'fs/promises',
20-
'@temporalio/worker',
21-
'path',
22-
'child_process'
23-
]
24-
},
25-
debugMode: true,
2617
},
27-
debuggerAddr: 'http://127.0.0.1:54578'
2818
} as any; // adapter types
2919

3020
await replay(opts, exampleWorkflow);

replayer-adapter-nodejs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@phuongdnguyen/replayer-adapter-nodejs",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "Replayer adapter and interceptors for Temporal Node.js workflows",
55
"repository": {
66
"type": "git",

replayer-adapter-nodejs/src/replayer.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export async function replay(opts: ReplayOptions, workflow: any): Promise<void>
5252
const standaloneBreakpoints = opts.breakpoints || [];
5353
(globalThis as any).fetchBreakpointsFromWorkflow = () => standaloneBreakpoints;
5454
(globalThis as any).getDebuggerAddr = () => null; // No debugger address in standalone mode
55-
55+
5656

5757
return replayWithJsonFile(opts.workerReplayOptions || {}, workflow, opts.historyFilePath!, opts);
5858
} else {
@@ -116,6 +116,15 @@ export const replayConfig = {
116116
...interceptors,
117117
workflowModules,
118118
},
119+
bundlerOptions: {
120+
ignoreModules: [
121+
'fs/promises',
122+
'@temporalio/worker',
123+
'path',
124+
'child_process'
125+
]
126+
},
127+
debugMode: true,
119128
};
120129

121130
return await Worker.runReplayHistory(workerReplayOptions, hist);

0 commit comments

Comments
 (0)