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

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

* chore: update changeset to patch
This commit is contained in:
Ranjith kumar authored and GitHub committed 2024-12-24 20:00:46 +08:00
1 parent 041baafd38
commit 83925f5c7a
2 files changed
+7 -1

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---
Fix medusa develop command crashing on file change on windows
+2 -1
View File
@@ -75,8 +75,9 @@ export default async function ({ types, directory }) {
this.childProcess.removeAllListeners() this.childProcess.removeAllListeners()
if (process.platform === "win32") { if (process.platform === "win32") {
execSync(`taskkill /PID ${this.childProcess.pid} /F /T`) execSync(`taskkill /PID ${this.childProcess.pid} /F /T`)
} else {
this.childProcess.kill("SIGINT")
} }
this.childProcess.kill("SIGINT")
} }
this.start() this.start()
}, },