Skip to content

Commit

Permalink
Fix download server script (#283)
Browse files Browse the repository at this point in the history
Ensure that old server versions are properly removed before downloading a new version.
  • Loading branch information
tortmayr authored Sep 5, 2023
1 parent d450dd9 commit 36bcf27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/workflow-standalone/scripts/start-example-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ async function downloadIfNecessary(): Promise<string> {

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
Expand Down

0 comments on commit 36bcf27

Please sign in to comment.