diff --git a/examples/workflow-standalone/scripts/start-example-server.ts b/examples/workflow-standalone/scripts/start-example-server.ts index 9f6a320c..11fa4270 100644 --- a/examples/workflow-standalone/scripts/start-example-server.ts +++ b/examples/workflow-standalone/scripts/start-example-server.ts @@ -44,7 +44,8 @@ async function downloadIfNecessary(): Promise { console.log('Server executable with correct version not found. Download from npm.'); if (existingServer) { - fs.rmSync(existingServer); + fs.rmSync(path.resolve(serverDirPath, existingServer)); + fs.rmSync(path.resolve(serverDirPath, existingServer.replace('.js', '.js.map'))); } sh.cd(serverDirPath); const packResultJson = sh