@epic-web/workshop-app 5.24.0 → 5.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/epicshop.js +8 -4
  2. package/package.json +3 -3
package/bin/epicshop.js CHANGED
@@ -226,17 +226,21 @@ async function start() {
226
226
  await doUpdateAndRestart()
227
227
  } else if (key === '\u0003') {
228
228
  // Ctrl+C
229
- await killChild(child)
230
- if (server) await new Promise((resolve) => server.close(resolve))
229
+ await cleanupBeforeExit()
231
230
  process.exit(0)
232
231
  }
233
232
  })
234
233
  }
235
234
 
236
- closeWithGrace(async () => {
235
+ async function cleanupBeforeExit() {
236
+ if (process.platform === 'win32' && child && child.pid) {
237
+ spawn('taskkill', ['/pid', child.pid, '/f', '/t'])
238
+ }
237
239
  await killChild(child)
238
240
  if (server) await new Promise((resolve) => server.close(resolve))
239
- })
241
+ }
242
+
243
+ closeWithGrace(cleanupBeforeExit)
240
244
  }
241
245
 
242
246
  async function killChild(child) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epic-web/workshop-app",
3
- "version": "5.24.0",
3
+ "version": "5.24.1",
4
4
  "sideEffects": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -44,8 +44,8 @@
44
44
  "@epic-web/invariant": "^1.0.0",
45
45
  "@epic-web/remember": "^1.1.0",
46
46
  "@epic-web/restore-scroll": "^1.1.1",
47
- "@epic-web/workshop-presence": "5.24.0",
48
- "@epic-web/workshop-utils": "5.24.0",
47
+ "@epic-web/workshop-presence": "5.24.1",
48
+ "@epic-web/workshop-utils": "5.24.1",
49
49
  "@mdx-js/mdx": "^3.0.1",
50
50
  "@mux/mux-player-react": "^3.0.0",
51
51
  "@nasa-gcn/remix-seo": "^2.0.1",