@opentapd/tplugin-cli 0.20.0-beta.13 → 0.20.0-beta.15

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/lib/create.js +2 -1
  2. package/package.json +1 -1
package/lib/create.js CHANGED
@@ -71,6 +71,7 @@ module.exports = async (code, options) => {
71
71
  name: options.name || code,
72
72
  template: selectedTmpl.template,
73
73
  ...entranceConfigs,
74
+ async: true,
74
75
  };
75
76
 
76
77
  spinner.start('稍等片刻,正在创建...');
@@ -143,7 +144,7 @@ async function getAppCreateStatus(code) {
143
144
  return;
144
145
  }
145
146
  if (data.data.status === '0') {
146
- setTimeout(() => getAppCreateStatus(code), 1);
147
+ setTimeout(() => getAppCreateStatus(code), 1000);
147
148
  } else if (data.data.status === '1') {
148
149
  spinner.stop();
149
150
  // 创建完成后,拉取代码
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentapd/tplugin-cli",
3
- "version": "0.20.0-beta.13",
3
+ "version": "0.20.0-beta.15",
4
4
  "description": "tplugin-cli",
5
5
  "bin": {
6
6
  "tplugin-cli": "index.js"