@construct-space/cli 1.7.1 → 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.
- package/dist/index.js +12 -7
- 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."));
|
|
@@ -10232,7 +10233,11 @@ var allowedDirs = [
|
|
|
10232
10233
|
"public",
|
|
10233
10234
|
"tests",
|
|
10234
10235
|
"widgets",
|
|
10235
|
-
"models"
|
|
10236
|
+
"models",
|
|
10237
|
+
"icons",
|
|
10238
|
+
"assets",
|
|
10239
|
+
"media",
|
|
10240
|
+
"bin"
|
|
10236
10241
|
];
|
|
10237
10242
|
var allowedRootFiles = [
|
|
10238
10243
|
"space.manifest.json",
|
|
@@ -10624,7 +10629,7 @@ function check() {
|
|
|
10624
10629
|
|
|
10625
10630
|
// src/commands/clean.ts
|
|
10626
10631
|
init_source();
|
|
10627
|
-
import { rmSync, existsSync as existsSync14 } from "fs";
|
|
10632
|
+
import { rmSync as rmSync2, existsSync as existsSync14 } from "fs";
|
|
10628
10633
|
import { join as join17 } from "path";
|
|
10629
10634
|
function clean(options) {
|
|
10630
10635
|
const root = process.cwd();
|
|
@@ -10636,7 +10641,7 @@ function clean(options) {
|
|
|
10636
10641
|
for (const dir of dirs) {
|
|
10637
10642
|
const path = join17(root, dir);
|
|
10638
10643
|
if (existsSync14(path)) {
|
|
10639
|
-
|
|
10644
|
+
rmSync2(path, { recursive: true });
|
|
10640
10645
|
console.log(source_default.dim(` Removed ${dir}/`));
|
|
10641
10646
|
}
|
|
10642
10647
|
}
|
|
@@ -10644,7 +10649,7 @@ function clean(options) {
|
|
|
10644
10649
|
for (const file of lockfiles) {
|
|
10645
10650
|
const path = join17(root, file);
|
|
10646
10651
|
if (existsSync14(path)) {
|
|
10647
|
-
|
|
10652
|
+
rmSync2(path);
|
|
10648
10653
|
console.log(source_default.dim(` Removed ${file}`));
|
|
10649
10654
|
}
|
|
10650
10655
|
}
|
|
@@ -11415,7 +11420,7 @@ function graphFork(newSpaceID) {
|
|
|
11415
11420
|
// package.json
|
|
11416
11421
|
var package_default = {
|
|
11417
11422
|
name: "@construct-space/cli",
|
|
11418
|
-
version: "1.7.
|
|
11423
|
+
version: "1.7.3",
|
|
11419
11424
|
description: "Construct CLI \u2014 scaffold, build, develop, and publish spaces",
|
|
11420
11425
|
type: "module",
|
|
11421
11426
|
bin: {
|