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
2024-12-24 17:30:46 +05:30
committed by GitHub
parent 041baafd38
commit 83925f5c7a
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---
Fix medusa develop command crashing on file change on windows

View File

@@ -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()
},