@take-out/scripts 0.1.24 → 0.1.25

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/package.json +2 -2
  2. package/src/run-pty.mjs +7 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@take-out/scripts",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "type": "module",
5
5
  "main": "./src/run.ts",
6
6
  "sideEffects": false,
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "@clack/prompts": "^0.8.2",
32
32
  "@lydell/node-pty": "^1.2.0-beta.3",
33
- "@take-out/helpers": "0.1.24",
33
+ "@take-out/helpers": "workspace:*",
34
34
  "picocolors": "^1.1.1"
35
35
  },
36
36
  "peerDependencies": {
package/src/run-pty.mjs CHANGED
@@ -346,8 +346,13 @@ async function main() {
346
346
 
347
347
  process.stdout.on('resize', () => {
348
348
  for (const p of processes) {
349
- if (!p.killed)
350
- p.terminal.resize(process.stdout.columns || 80, process.stdout.rows || 24)
349
+ if (!p.killed) {
350
+ try {
351
+ p.terminal.resize(process.stdout.columns || 80, process.stdout.rows || 24)
352
+ } catch {
353
+ // pty already closed
354
+ }
355
+ }
351
356
  }
352
357
  })
353
358