Skip to content

Commit

Permalink
fix(medusa-cli): fix medusa develop command crashing on file change o…
Browse files Browse the repository at this point in the history
…n windows (#10717)

* fix(medusa-cli): fix medusa develop command crashing on file change on windows

* chore: update changeset to patch
  • Loading branch information
ranjithkumar8352 authored Dec 24, 2024
1 parent 041baaf commit 83925f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/silent-lies-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---

Fix medusa develop command crashing on file change on windows
3 changes: 2 additions & 1 deletion packages/medusa/src/commands/develop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ export default async function ({ types, directory }) {
this.childProcess.removeAllListeners()
if (process.platform === "win32") {
execSync(`taskkill /PID ${this.childProcess.pid} /F /T`)
} else {
this.childProcess.kill("SIGINT")
}
this.childProcess.kill("SIGINT")
}
this.start()
},
Expand Down

0 comments on commit 83925f5

Please sign in to comment.