sagacloud 0.3.1 → 0.3.2

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 +12 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -954,6 +954,10 @@ var STATIC_NON_WEB_IGNORES = [
954
954
  ".editorconfig",
955
955
  ".gitignore",
956
956
  ".gitattributes",
957
+ ".gitkeep",
958
+ "**/.gitkeep",
959
+ ".keep",
960
+ "**/.keep",
957
961
  ".browserslistrc",
958
962
  ".npmrc",
959
963
  ".prettierrc",
@@ -1234,7 +1238,13 @@ function registerDeployCommands(program2) {
1234
1238
  const uploadSpin = p2.spinner();
1235
1239
  uploadSpin.start("Uploading bundle to SagaCloud...");
1236
1240
  const zipName = `${(jsonc?.app_name || jsonc?.name || path4.basename(cwd) || "bundle").replace(/[^a-z0-9-]+/gi, "-")}.zip`;
1237
- const uploaded = await client.uploadBundle(archive.buffer, zipName, siteType);
1241
+ let uploaded;
1242
+ try {
1243
+ uploaded = await client.uploadBundle(archive.buffer, zipName, siteType);
1244
+ } catch (err) {
1245
+ uploadSpin.stop("Upload failed");
1246
+ throw err;
1247
+ }
1238
1248
  uploadSpin.stop(`Uploaded (${uploaded.detected_entry})`);
1239
1249
  const mergedVars = /* @__PURE__ */ new Map();
1240
1250
  if (jsonc?.vars) {
@@ -2042,7 +2052,7 @@ function registerSkillCommands(program2) {
2042
2052
 
2043
2053
  // src/index.ts
2044
2054
  var program = new Command();
2045
- program.name("sagacloud").description("SagaCloud CLI \u2014 deploy Static, SPA, Express & Node.js apps cleanly").version("0.3.1");
2055
+ program.name("sagacloud").description("SagaCloud CLI \u2014 deploy Static, SPA, Express & Node.js apps cleanly").version("0.3.2");
2046
2056
  registerAuthCommands(program);
2047
2057
  registerProjectCommands(program);
2048
2058
  registerDeployCommands(program);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sagacloud",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Official CLI for SagaCloud Web & App Hosting",
5
5
  "license": "MIT",
6
6
  "author": "SagaSoft",