betterstart-cli 0.0.77 → 0.0.79
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.
- package/dist/cli.js +6 -4
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -4146,7 +4146,7 @@ import path26 from "path";
|
|
|
4146
4146
|
import fs15 from "fs";
|
|
4147
4147
|
import path18 from "path";
|
|
4148
4148
|
var SNAPSHOT_COMMENT = "# BetterStart: snapshot files are local-only; manifest is committed";
|
|
4149
|
-
var SNAPSHOT_IGNORE = ".betterstart/
|
|
4149
|
+
var SNAPSHOT_IGNORE = ".betterstart/";
|
|
4150
4150
|
var SNAPSHOT_ATTRIBUTES = ".betterstart/** text eol=lf";
|
|
4151
4151
|
function ensureLine(filePath, line, comment) {
|
|
4152
4152
|
const existing = fs15.existsSync(filePath) ? fs15.readFileSync(filePath, "utf-8") : "";
|
|
@@ -20086,10 +20086,11 @@ import * as p5 from "@clack/prompts";
|
|
|
20086
20086
|
var RENDER_OVERHEAD = 7;
|
|
20087
20087
|
var MIN_MESSAGE_WIDTH = 8;
|
|
20088
20088
|
function fitSpinnerMessage(message) {
|
|
20089
|
+
const normalized = message.replace(/\t/g, " ");
|
|
20089
20090
|
const columns = process.stdout.columns ?? 80;
|
|
20090
20091
|
const max = Math.max(columns - RENDER_OVERHEAD, MIN_MESSAGE_WIDTH);
|
|
20091
|
-
const visible = stripVTControlCharacters(
|
|
20092
|
-
if (visible.length <= max) return
|
|
20092
|
+
const visible = stripVTControlCharacters(normalized);
|
|
20093
|
+
if (visible.length <= max) return normalized;
|
|
20093
20094
|
return `${visible.slice(0, max - 1)}\u2026`;
|
|
20094
20095
|
}
|
|
20095
20096
|
var CLACK_LINE_ROWS = 2;
|
|
@@ -23539,7 +23540,8 @@ function deploymentLine(line) {
|
|
|
23539
23540
|
if (typeof jsonMessage === "string") message = jsonMessage;
|
|
23540
23541
|
} catch {
|
|
23541
23542
|
}
|
|
23542
|
-
|
|
23543
|
+
message = message.replace(/\s+/g, " ").trim();
|
|
23544
|
+
return message === "" || /^\.+$/.test(message) ? void 0 : message.slice(0, 140);
|
|
23543
23545
|
}
|
|
23544
23546
|
async function readFailedDeploymentLogs(session, cwd, service) {
|
|
23545
23547
|
const logs = await runRailway(
|