catylst 1.0.10 → 1.0.11

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 +1 -1
  2. package/postinstall.js +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catylst",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "Generate customized Kotlin Multiplatform projects with an interactive wizard",
5
5
  "keywords": [
6
6
  "kotlin",
package/postinstall.js CHANGED
@@ -273,4 +273,11 @@ function downloadJar() {
273
273
  print(" " + dim("Or non-interactive:"));
274
274
  print(" " + dim("catylst --package com.example.app --name MyApp"));
275
275
  print("");
276
+
277
+ // The /dev/tty WriteStream holds the event loop open after all output is
278
+ // written, making the process appear to hang. Close it so the process exits
279
+ // on its own without npm having to send SIGINT.
280
+ if (tty !== process.stderr) {
281
+ tty.end(() => process.exit(0));
282
+ }
276
283
  })();