@opentapd/tplugin-cli 0.36.1-alpha.1 → 0.36.1-alpha.3

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/lib/create.js CHANGED
@@ -135,8 +135,9 @@ async function getEntranceOpts() {
135
135
  async function create(params) {
136
136
  const { data } = await tapdsdk.request({ url: '/open_user_app/create_app', method: 'POST', params });
137
137
  if (!data || !data.status) {
138
- spinner.fail('创建插件失败');
139
- return ;
138
+ const error = new Error(data);
139
+ error.title = '创建插件失败';
140
+ throw error;
140
141
  }
141
142
 
142
143
  const { data: { code } } = data;
@@ -234,7 +235,7 @@ async function cloneRepo(res, code) {
234
235
  return;
235
236
  }
236
237
 
237
-
238
+
238
239
  const params = {
239
240
  code,
240
241
  };
@@ -331,4 +332,3 @@ async function selectEntrances() {
331
332
  }))),
332
333
  };
333
334
  }
334
-
package/lib/deploy.js CHANGED
@@ -301,7 +301,7 @@ async function deploy(branch, commit, code, { nick } = {}) {
301
301
  await sleep(5000);
302
302
  }
303
303
  // 超时时,提醒前往平台关注部署进度
304
- const deployTips = `前往TAPD开放平台,查看部署进度。${tpluginConf.tapd.openHost}/admin/${code}/codedeploy`;
304
+ const deployTips = `部署超时,前往TAPD开放平台,查看部署进度。${tpluginConf.tapd.openHost}/admin/${code}/codedeploy`;
305
305
  spinner.fail(deployTips);
306
306
  }
307
307
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentapd/tplugin-cli",
3
- "version": "0.36.1-alpha.1",
3
+ "version": "0.36.1-alpha.3",
4
4
  "description": "tplugin-cli",
5
5
  "bin": {
6
6
  "tplugin-cli": "index.js"
@@ -78,5 +78,5 @@
78
78
  "node": ">=14.13.0"
79
79
  },
80
80
  "main": "index.js",
81
- "gitHead": "078395e74e27de557777256cefb90022ddb41374"
81
+ "gitHead": "205a61451b01f75d02bedfc4b395be615bfc10c3"
82
82
  }