@opentapd/tplugin-cli 0.35.1-alpha.4 → 0.35.1-alpha.5
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 +16 -14
- package/package.json +2 -2
package/lib/create.js
CHANGED
|
@@ -211,18 +211,6 @@ async function cloneRepo(res, code) {
|
|
|
211
211
|
// ex逻辑
|
|
212
212
|
} else {
|
|
213
213
|
try {
|
|
214
|
-
const params = {
|
|
215
|
-
code,
|
|
216
|
-
};
|
|
217
|
-
|
|
218
|
-
// 获取临时下载仓库链接
|
|
219
|
-
const repoRes = await getTmpRepoUrl(params);
|
|
220
|
-
|
|
221
|
-
if (!repoRes || !repoRes.status) {
|
|
222
|
-
spinner.fail(`应用创建成功,但是获取临时下载仓库链接失败,请手动执行tplugin repo ${code}下载当前${code}插件代码`);
|
|
223
|
-
return;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
214
|
const repoList = [
|
|
227
215
|
{
|
|
228
216
|
name: `自动下载${code}仓库`,
|
|
@@ -242,12 +230,26 @@ async function cloneRepo(res, code) {
|
|
|
242
230
|
}]);
|
|
243
231
|
|
|
244
232
|
if (gitRepo.repo === 'later') {
|
|
245
|
-
spinner.succeed(`应用创建成功,请手动执行tplugin repo ${code}下载当前${code}插件代码`);
|
|
233
|
+
spinner.succeed(`应用创建成功,请手动执行tplugin-cli repo ${code}下载当前${code}插件代码`);
|
|
246
234
|
return;
|
|
247
235
|
}
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
const params = {
|
|
239
|
+
code,
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
// 获取临时下载仓库链接
|
|
243
|
+
const repoRes = await getTmpRepoUrl(params);
|
|
244
|
+
|
|
245
|
+
if (!repoRes || !repoRes.status) {
|
|
246
|
+
spinner.fail(`应用创建成功,但是获取临时下载仓库链接失败,请手动执行tplugin-cli repo ${code}下载当前${code}插件代码`);
|
|
247
|
+
return ;
|
|
248
|
+
}
|
|
249
|
+
|
|
248
250
|
await downloadAndUnzip(repoRes.data.download_url);
|
|
249
251
|
} catch (e) {
|
|
250
|
-
e.title = `下载失败,请手动执行tplugin repo ${code}下载当前${code}插件代码`;
|
|
252
|
+
e.title = `下载失败,请手动执行tplugin-cli repo ${code}下载当前${code}插件代码`;
|
|
251
253
|
throw e;
|
|
252
254
|
}
|
|
253
255
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentapd/tplugin-cli",
|
|
3
|
-
"version": "0.35.1-alpha.
|
|
3
|
+
"version": "0.35.1-alpha.5",
|
|
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": "
|
|
81
|
+
"gitHead": "d293bca98ea302552619892bc417364a8ded6a62"
|
|
82
82
|
}
|