create-mikstack 0.1.22 → 0.1.23

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/dist/index.js +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -368,10 +368,13 @@ async function cli() {
368
368
  "pipe"
369
369
  ]
370
370
  });
371
+ const cols = process.stdout.columns || 80;
371
372
  const handleData = (data) => {
372
373
  if (!onLine) return;
373
374
  const line = data.toString().trim().split("\n").pop();
374
- if (line) onLine(line);
375
+ if (!line) return;
376
+ const maxLen = cols - 5;
377
+ onLine(line.length > maxLen ? line.slice(0, maxLen - 1) + "…" : line);
375
378
  };
376
379
  child.stdout.on("data", handleData);
377
380
  child.stderr.on("data", handleData);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-mikstack",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",