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:
5
.changeset/silent-lies-knock.md
Normal file
5
.changeset/silent-lies-knock.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/medusa": patch
|
||||
---
|
||||
|
||||
Fix medusa develop command crashing on file change on windows
|
||||
@@ -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()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user