@linktr.ee/create-link-app 1.7.3 → 1.7.4

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.
@@ -12,12 +12,6 @@ const pack_project_1 = __importDefault(require("../lib/deploy/pack-project"));
12
12
  const upload_assets_1 = __importDefault(require("../lib/deploy/upload-assets"));
13
13
  class Deploy extends base_1.default {
14
14
  async run() {
15
- try {
16
- await this.parse(Deploy);
17
- }
18
- catch (err) {
19
- console.log('err', err);
20
- }
21
15
  const { flags } = await this.parse(Deploy);
22
16
  const appConfig = await this.getAppConfig(flags.qa ? 'qa' : 'production');
23
17
  const accessToken = (0, access_token_1.getAccessToken)(appConfig.auth.audience);
@@ -42,9 +36,9 @@ class Deploy extends base_1.default {
42
36
  return;
43
37
  }
44
38
  }
45
- const form = (0, create_form_data_1.default)(flags.path);
46
39
  let linkTypeErrorCode = null;
47
40
  try {
41
+ const form = (0, create_form_data_1.default)(flags.path);
48
42
  const result = await (0, upload_assets_1.default)(linkTypeServiceUrl, form, accessToken, flags.update, isForceUpdate);
49
43
  await this.processSuccess(flags, result);
50
44
  }
@@ -69,13 +63,16 @@ class Deploy extends base_1.default {
69
63
  }
70
64
  }
71
65
  if (linkTypeErrorCode === 'LINK_TYPE_ALREADY_EXISTS' && !flags.update && !isForceUpdate) {
72
- this.log(`\n⚠️ This Link Type already exists! Do you want to update it?\n`);
73
- const userConfirmUpdate = await core_1.CliUx.ux.prompt(`❓ Do you want to proceed? (Y/n)`, { required: false });
74
- if (userConfirmUpdate.toLowerCase() !== 'y') {
75
- this.log('Aborted!');
76
- return;
66
+ if (!flags['skip-confirm']) {
67
+ this.log(`\n⚠️ [${isQa ? '[QA]' : ''}] This Link Type already exists! Do you want to update it?\n`);
68
+ const userConfirmUpdate = await core_1.CliUx.ux.prompt(`❓ Do you want to proceed? (Y/n)`, { required: false });
69
+ if (userConfirmUpdate.toLowerCase() !== 'y') {
70
+ this.log('Aborted!');
71
+ return;
72
+ }
77
73
  }
78
74
  try {
75
+ const form = (0, create_form_data_1.default)(flags.path);
79
76
  const result = await (0, upload_assets_1.default)(linkTypeServiceUrl, form, accessToken, true, isForceUpdate);
80
77
  await this.processSuccess(flags, result);
81
78
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.7.3",
2
+ "version": "1.7.4",
3
3
  "commands": {
4
4
  "build": {
5
5
  "id": "build",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linktr.ee/create-link-app",
3
- "version": "1.7.3",
3
+ "version": "1.7.4",
4
4
  "description": "Create a Link App on Linktr.ee.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Linktree",