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:
1 parent
041baafd38
commit
83925f5c7a
2 files changed
+7
-1
No files matched your search
@@ -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()
|
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()
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user