@zerodeploy/cli 0.1.11 → 0.1.12
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 +17 -6
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -10296,7 +10296,8 @@ var IGNORE_PATTERNS = [
|
|
|
10296
10296
|
/^\.DS_Store$/,
|
|
10297
10297
|
/^node_modules$/,
|
|
10298
10298
|
/^\.env/,
|
|
10299
|
-
/^\.wrangler
|
|
10299
|
+
/^\.wrangler$/,
|
|
10300
|
+
/^zerodeploy\.json$/
|
|
10300
10301
|
];
|
|
10301
10302
|
function shouldIgnore(name) {
|
|
10302
10303
|
return IGNORE_PATTERNS.some((pattern) => pattern.test(name));
|
|
@@ -11374,7 +11375,7 @@ var deployPromoteCommand = new Command2("promote").description("Promote a previe
|
|
|
11374
11375
|
});
|
|
11375
11376
|
|
|
11376
11377
|
// src/lib/version.ts
|
|
11377
|
-
var VERSION = "0.1.
|
|
11378
|
+
var VERSION = "0.1.12";
|
|
11378
11379
|
|
|
11379
11380
|
// src/commands/deploy/index.ts
|
|
11380
11381
|
function slugify(input) {
|
|
@@ -11837,10 +11838,14 @@ Error: Build failed`);
|
|
|
11837
11838
|
}
|
|
11838
11839
|
});
|
|
11839
11840
|
if (!finalizeRes.ok) {
|
|
11840
|
-
finalizeSpinner.stop();
|
|
11841
11841
|
const body = await finalizeRes.json().catch(() => ({}));
|
|
11842
|
-
|
|
11843
|
-
|
|
11842
|
+
if (body.error?.details?.status === "ready") {
|
|
11843
|
+
finalizeSpinner.update("Finalizing... already complete");
|
|
11844
|
+
} else {
|
|
11845
|
+
finalizeSpinner.stop();
|
|
11846
|
+
displayError(parseApiError(body));
|
|
11847
|
+
process.exit(5);
|
|
11848
|
+
}
|
|
11844
11849
|
}
|
|
11845
11850
|
const verifyRecordRes = await client.deployments[":id"].$get({
|
|
11846
11851
|
param: { id: deployment.id }
|
|
@@ -12574,14 +12579,20 @@ var initCommand = new Command2("init").description("Create a zerodeploy.json con
|
|
|
12574
12579
|
config.dir = options.dir;
|
|
12575
12580
|
} else if (framework) {
|
|
12576
12581
|
config.dir = framework.outputDir;
|
|
12582
|
+
} else {
|
|
12583
|
+
config.dir = "dist";
|
|
12577
12584
|
}
|
|
12578
12585
|
if (options.build) {
|
|
12579
12586
|
config.build = options.build;
|
|
12580
12587
|
} else if (framework) {
|
|
12581
12588
|
config.build = framework.buildCommand;
|
|
12589
|
+
} else {
|
|
12590
|
+
config.build = "npm run build";
|
|
12582
12591
|
}
|
|
12583
12592
|
if (options.ignore) {
|
|
12584
12593
|
config.ignore = options.ignore;
|
|
12594
|
+
} else {
|
|
12595
|
+
config.ignore = ["*.map"];
|
|
12585
12596
|
}
|
|
12586
12597
|
const content = JSON.stringify(config, null, 2);
|
|
12587
12598
|
writeFileSync(configPath, content + `
|
|
@@ -12831,7 +12842,7 @@ function createInspectCommand(rootProgram) {
|
|
|
12831
12842
|
}
|
|
12832
12843
|
|
|
12833
12844
|
// src/lib/version.ts
|
|
12834
|
-
var VERSION2 = "0.1.
|
|
12845
|
+
var VERSION2 = "0.1.12";
|
|
12835
12846
|
|
|
12836
12847
|
// src/lib/update-check.ts
|
|
12837
12848
|
import { existsSync as existsSync3, mkdirSync, readFileSync as readFileSync2, writeFileSync as writeFileSync2 } from "fs";
|