create-cookbook 1.0.0-alpha.70 → 1.0.0-alpha.72
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/index.mjs +1 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -66,14 +66,13 @@ const color = gradient(["cyan", "#2d9b87"]);
|
|
|
66
66
|
consola.success(color("Extracted!"));
|
|
67
67
|
|
|
68
68
|
console.log("");
|
|
69
|
-
consola.info(color(`Try run: co
|
|
69
|
+
consola.info(color(`Try run: co version`));
|
|
70
70
|
consola.info(colorLong(`If you find that the co command does not exist, try restarting your Terminal or System`));
|
|
71
71
|
})();
|
|
72
72
|
|
|
73
73
|
const utils = {
|
|
74
74
|
downloadFile: async (url, workspace, filename) => {
|
|
75
75
|
const res = await fetch(url);
|
|
76
|
-
if (!existsSync("downloads")) await mkdirSync("downloads");
|
|
77
76
|
if (existsSync(join(workspace, filename))) await remove(join(workspace, filename));
|
|
78
77
|
const destination = join(workspace, filename);
|
|
79
78
|
const fileStream = createWriteStream(destination, { flags: "wx" });
|