create-cookbook 1.0.0-beta.21 → 1.0.0-beta.23

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/index.mjs +12 -12
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -90,15 +90,15 @@ const color = gradient(["cyan", "#2d9b87"]);
90
90
  exit(1);
91
91
  }
92
92
 
93
- const uiUrl = `${cookbookPackageInfo.mirror}${uiName}/-/cookbook-ui-${version === "latest" ? uiPackageInfo.json["dist-tags"].latest : version}.tgz`;
94
- consola.start(uiUrl);
95
- consola.start(color(`[1/2] Downloading Cookbook UI (${uiUrl})..`));
96
- await utils.downloadFile(uiUrl, tempspace, "ui.tgz");
97
- consola.success(color("[1/2] Downloaded!"));
98
- const uiExtractPromise = (async () => {
99
- if (!existsSync(join(tempspace, "ui"))) mkdirSync(join(tempspace, "ui"));
100
- await compressing.tgz.uncompress(join(tempspace, "ui.tgz"), join(tempspace, "ui"));
101
- })();
93
+ // const uiUrl = `${cookbookPackageInfo.mirror}${uiName}/-/cookbook-ui-${version === "latest" ? uiPackageInfo.json["dist-tags"].latest : version}.tgz`;
94
+ // consola.start(uiUrl);
95
+ // consola.start(color(`[1/2] Downloading Cookbook UI (${uiUrl})..`));
96
+ // await utils.downloadFile(uiUrl, tempspace, "ui.tgz");
97
+ // consola.success(color("[1/2] Downloaded!"));
98
+ // const uiExtractPromise = (async () => {
99
+ // if (!existsSync(join(tempspace, "ui"))) mkdirSync(join(tempspace, "ui"));
100
+ // await compressing.tgz.uncompress(join(tempspace, "ui.tgz"), join(tempspace, "ui"));
101
+ // })();
102
102
 
103
103
  const cookbookUrl = `${cookbookPackageInfo.mirror}${cookbookName}/-/cookbook-${process.platform}-${os.arch()}-${version === "latest" ? cookbookPackageInfo.json["dist-tags"].latest : version}.tgz`;
104
104
  consola.start(cookbookUrl);
@@ -109,9 +109,9 @@ const color = gradient(["cyan", "#2d9b87"]);
109
109
  await compressing.tgz.uncompress(join(tempspace, "cookbook.tgz"), tempspace);
110
110
  })();
111
111
 
112
- consola.start(color("[1/2] Extracting.."));
113
- await Promise.all([uiExtractPromise, cookbookExtractPromise]);
114
- consola.success(color("[1/2] Extracted!"));
112
+ // consola.start(color("[1/2] Extracting.."));
113
+ // await Promise.all([uiExtractPromise, cookbookExtractPromise]);
114
+ // consola.success(color("[1/2] Extracted!"));
115
115
 
116
116
  consola.success(color("[2/2] Installing.."));
117
117
  await utils.mvToPathAndInstall(installPath, join(tempspace, "package"), process.platform === "win32" ? "co.exe" : "co");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cookbook",
3
- "version": "1.0.0-beta.21",
3
+ "version": "1.0.0-beta.23",
4
4
  "main": "index.mjs",
5
5
  "bin": {
6
6
  "create-cookbook": "./index.mjs"