onveloz 0.0.0-beta.19 → 0.0.0-beta.20
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/index.mjs +11 -10
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -316,14 +316,15 @@ const VelozConfigSchema = z$1.object({
|
|
|
316
316
|
});
|
|
317
317
|
function mergeServiceWithDefaults(service, defaults) {
|
|
318
318
|
if (!defaults) return service;
|
|
319
|
+
const mergedBuild = service.build || defaults.build ? {
|
|
320
|
+
...defaults.build,
|
|
321
|
+
...service.build
|
|
322
|
+
} : void 0;
|
|
319
323
|
return {
|
|
320
324
|
...service,
|
|
321
325
|
type: service.type ?? defaults.type ?? "web",
|
|
322
326
|
branch: service.branch ?? defaults.branch,
|
|
323
|
-
build:
|
|
324
|
-
...defaults.build,
|
|
325
|
-
...service.build
|
|
326
|
-
},
|
|
327
|
+
build: mergedBuild,
|
|
327
328
|
runtime: {
|
|
328
329
|
...defaults.runtime,
|
|
329
330
|
...service.runtime
|
|
@@ -4506,8 +4507,9 @@ async function streamDeploymentLogs(deploymentId, serviceId, serviceName) {
|
|
|
4506
4507
|
const hints = getFailureHints$1(finalStatus);
|
|
4507
4508
|
if (mcp) {
|
|
4508
4509
|
log(`✗ Deploy finalizou: ${label}`);
|
|
4510
|
+
for (const line of allLogLines) if (line.trim()) log(`[build] ${line.trim()}`);
|
|
4509
4511
|
for (const hint of hints) log(` → ${hint}`);
|
|
4510
|
-
} else if (isTTY &&
|
|
4512
|
+
} else if (isTTY && allLogLines.length > 0) {
|
|
4511
4513
|
console.log();
|
|
4512
4514
|
console.log(chalk.red(` ${"─".repeat(50)}`));
|
|
4513
4515
|
console.log(chalk.red.bold(" Logs de build:"));
|
|
@@ -4569,7 +4571,7 @@ const LOGO_LINES = [
|
|
|
4569
4571
|
];
|
|
4570
4572
|
const BRAND_COLOR = "#FF4D00";
|
|
4571
4573
|
function getVersion() {
|
|
4572
|
-
return "0.0.0-beta.
|
|
4574
|
+
return "0.0.0-beta.20";
|
|
4573
4575
|
}
|
|
4574
4576
|
function printBanner(subtitle) {
|
|
4575
4577
|
const version = getVersion();
|
|
@@ -5539,7 +5541,7 @@ async function autoUpdate() {
|
|
|
5539
5541
|
if (process.env.VELOZ_MCP === "true") return;
|
|
5540
5542
|
const pm = detectPackageManager();
|
|
5541
5543
|
if (!pm) return;
|
|
5542
|
-
const currentVersion = "0.0.0-beta.
|
|
5544
|
+
const currentVersion = "0.0.0-beta.20";
|
|
5543
5545
|
const latestVersion = await fetchLatestVersion();
|
|
5544
5546
|
if (!latestVersion || latestVersion === currentVersion) return;
|
|
5545
5547
|
const installCmd = getInstallCommand(pm, latestVersion);
|
|
@@ -5780,8 +5782,7 @@ const SERVICE_TYPE_LABELS = {
|
|
|
5780
5782
|
function prepareExtraFiles(_detection, serviceConfig) {
|
|
5781
5783
|
if (serviceConfig?.docker) {
|
|
5782
5784
|
const dockerfilePath = resolve(process.cwd(), serviceConfig.docker.dockerfile);
|
|
5783
|
-
if (
|
|
5784
|
-
return [{
|
|
5785
|
+
if (existsSync(dockerfilePath)) return [{
|
|
5785
5786
|
name: "Dockerfile",
|
|
5786
5787
|
content: readFileSync(dockerfilePath, "utf-8")
|
|
5787
5788
|
}];
|
|
@@ -7116,7 +7117,7 @@ async function pruneRemovedEntries(config, existingConfig, services, databases)
|
|
|
7116
7117
|
//#region src/index.ts
|
|
7117
7118
|
if (process.argv.includes("--mcp")) process.env.VELOZ_MCP = "true";
|
|
7118
7119
|
const cli = Cli.create("veloz", {
|
|
7119
|
-
version: "0.0.0-beta.
|
|
7120
|
+
version: "0.0.0-beta.20",
|
|
7120
7121
|
description: "CLI da plataforma Veloz — deploy rápido para o Brasil",
|
|
7121
7122
|
env: z.object({ VELOZ_ENV: z.string().optional().describe("Ambiente alvo (ex: preview, staging)") })
|
|
7122
7123
|
});
|