create-cookbook 1.0.0-beta.74 → 1.0.0-beta.75

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.
@@ -0,0 +1 @@
1
+ export const __VERSION__ = "1.0.0-beta.74";
package/index.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
+ import { __VERSION__ } from "./__VERSION__.mjs";
3
4
  import os from "node:os";
4
5
  import { join } from "node:path";
5
6
  import { exit } from "node:process";
@@ -35,7 +36,7 @@ const color = gradient(["cyan", "#2d9b87"]);
35
36
  if (!existsSync(tempspace)) mkdirSync(tempspace);
36
37
 
37
38
  const packageName = `@milkio/cookbook-${process.platform}-${os.arch()}`;
38
- let selectedVersion = version;
39
+ const selectedVersion = __VERSION__;
39
40
  let selectedMirror = "";
40
41
 
41
42
  consola.start(color("Finding the appropriate mirror.."));
@@ -61,7 +62,6 @@ const color = gradient(["cyan", "#2d9b87"]);
61
62
  const packageInfo = await response.json();
62
63
  if (!packageInfo || !packageInfo["dist-tags"] || !packageInfo["dist-tags"].latest) continue;
63
64
 
64
- if (!version || version === "latest") selectedVersion = packageInfo["dist-tags"].latest;
65
65
  selectedMirror = mirror;
66
66
  consola.success(color(`Found version ${selectedVersion} at ${mirror}`));
67
67
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cookbook",
3
- "version": "1.0.0-beta.74",
3
+ "version": "1.0.0-beta.75",
4
4
  "main": "index.mjs",
5
5
  "bin": {
6
6
  "create-cookbook": "./index.mjs"