@construct-space/cli 1.7.2 → 1.7.3

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 +7 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -10157,7 +10157,7 @@ async function dev() {
10157
10157
 
10158
10158
  // src/commands/run.ts
10159
10159
  init_source();
10160
- import { existsSync as existsSync9, cpSync as cpSync2, mkdirSync as mkdirSync3, readdirSync as readdirSync4, chmodSync, lstatSync } from "fs";
10160
+ import { existsSync as existsSync9, cpSync as cpSync2, mkdirSync as mkdirSync3, readdirSync as readdirSync4, chmodSync, lstatSync, rmSync } from "fs";
10161
10161
  import { join as join11 } from "path";
10162
10162
  init_appdir();
10163
10163
  function ensureBinExecutable(installDir) {
@@ -10198,8 +10198,9 @@ function install() {
10198
10198
  bundleAgentDir(agentDir, distDir);
10199
10199
  }
10200
10200
  const installDir = spaceDir(m.id);
10201
+ rmSync(installDir, { recursive: true, force: true });
10201
10202
  mkdirSync3(installDir, { recursive: true });
10202
- cpSync2(distDir, installDir, { recursive: true, verbatimSymlinks: true });
10203
+ cpSync2(distDir, installDir, { recursive: true, verbatimSymlinks: true, force: true });
10203
10204
  ensureBinExecutable(installDir);
10204
10205
  console.log(source_default.green(`Installed ${m.name} \u2192 ${installDir}`));
10205
10206
  console.log(source_default.dim(" Restart Construct to load the updated space."));
@@ -10628,7 +10629,7 @@ function check() {
10628
10629
 
10629
10630
  // src/commands/clean.ts
10630
10631
  init_source();
10631
- import { rmSync, existsSync as existsSync14 } from "fs";
10632
+ import { rmSync as rmSync2, existsSync as existsSync14 } from "fs";
10632
10633
  import { join as join17 } from "path";
10633
10634
  function clean(options) {
10634
10635
  const root = process.cwd();
@@ -10640,7 +10641,7 @@ function clean(options) {
10640
10641
  for (const dir of dirs) {
10641
10642
  const path = join17(root, dir);
10642
10643
  if (existsSync14(path)) {
10643
- rmSync(path, { recursive: true });
10644
+ rmSync2(path, { recursive: true });
10644
10645
  console.log(source_default.dim(` Removed ${dir}/`));
10645
10646
  }
10646
10647
  }
@@ -10648,7 +10649,7 @@ function clean(options) {
10648
10649
  for (const file of lockfiles) {
10649
10650
  const path = join17(root, file);
10650
10651
  if (existsSync14(path)) {
10651
- rmSync(path);
10652
+ rmSync2(path);
10652
10653
  console.log(source_default.dim(` Removed ${file}`));
10653
10654
  }
10654
10655
  }
@@ -11419,7 +11420,7 @@ function graphFork(newSpaceID) {
11419
11420
  // package.json
11420
11421
  var package_default = {
11421
11422
  name: "@construct-space/cli",
11422
- version: "1.7.2",
11423
+ version: "1.7.3",
11423
11424
  description: "Construct CLI \u2014 scaffold, build, develop, and publish spaces",
11424
11425
  type: "module",
11425
11426
  bin: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@construct-space/cli",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "Construct CLI — scaffold, build, develop, and publish spaces",
5
5
  "type": "module",
6
6
  "bin": {