@construct-space/cli 1.0.4 → 1.0.6

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/dist/index.js +5 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9833,11 +9833,12 @@ function logout() {
9833
9833
 
9834
9834
  // src/commands/update.ts
9835
9835
  import { execSync as execSync5 } from "child_process";
9836
+ var PKG_NAME = "@construct-space/cli";
9836
9837
  function update() {
9837
9838
  console.log(source_default.blue(`Current version: ${VERSION}`));
9838
9839
  let latest = VERSION;
9839
9840
  try {
9840
- latest = execSync5("npm view construct version", { encoding: "utf-8" }).trim();
9841
+ latest = execSync5(`npm view ${PKG_NAME} version`, { encoding: "utf-8" }).trim();
9841
9842
  } catch {}
9842
9843
  if (latest === VERSION) {
9843
9844
  console.log(source_default.green("Already on the latest version."));
@@ -9847,9 +9848,9 @@ function update() {
9847
9848
  const rt = detect();
9848
9849
  try {
9849
9850
  if (rt.name === "bun") {
9850
- execSync5("bun install -g construct", { stdio: "inherit" });
9851
+ execSync5(`bun install -g ${PKG_NAME}@latest`, { stdio: "inherit" });
9851
9852
  } else {
9852
- execSync5("npm install -g construct", { stdio: "inherit" });
9853
+ execSync5(`npm install -g ${PKG_NAME}@latest`, { stdio: "inherit" });
9853
9854
  }
9854
9855
  console.log(source_default.green(`Updated to v${latest}`));
9855
9856
  } catch (err) {
@@ -10385,7 +10386,7 @@ function parseModelFields(content, fileName) {
10385
10386
  }
10386
10387
 
10387
10388
  // src/index.ts
10388
- var VERSION = "1.0.1";
10389
+ var VERSION = "1.0.6";
10389
10390
  var program2 = new Command;
10390
10391
  program2.name("construct").description("Construct CLI — scaffold, build, develop, and publish spaces").version(VERSION);
10391
10392
  program2.command("scaffold [name]").alias("new").alias("create").description("Create a new Construct space project").option("--with-tests", "Include E2E testing boilerplate").action(async (name, opts) => scaffold(name, opts));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@construct-space/cli",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Construct CLI — scaffold, build, develop, and publish spaces",
5
5
  "type": "module",
6
6
  "bin": {