@ddd-tool/domain-designer-cli 0.1.0-beta.4 → 0.1.0-beta.5
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.
|
@@ -13507,7 +13507,7 @@ function onCancel() {
|
|
|
13507
13507
|
// src/utils/package-info.ts
|
|
13508
13508
|
var package_info_default = {
|
|
13509
13509
|
"name": "@ddd-tool/domain-designer-cli",
|
|
13510
|
-
"version": "0.1.0-beta.
|
|
13510
|
+
"version": "0.1.0-beta.5",
|
|
13511
13511
|
"private": true,
|
|
13512
13512
|
"type": "module",
|
|
13513
13513
|
"files": [
|
|
@@ -13522,7 +13522,7 @@ var package_info_default = {
|
|
|
13522
13522
|
},
|
|
13523
13523
|
"readme": "ERROR: No README data found!",
|
|
13524
13524
|
"homepage": "https://github.com/ddd-tool/domain-designer-cli-node#readme",
|
|
13525
|
-
"_id": "@ddd-tool/domain-designer-cli@0.1.0-beta.
|
|
13525
|
+
"_id": "@ddd-tool/domain-designer-cli@0.1.0-beta.5"
|
|
13526
13526
|
};
|
|
13527
13527
|
|
|
13528
13528
|
// src/domain/environment-agg/index.ts
|
|
@@ -13554,23 +13554,39 @@ function findWebRoot(osType, packageManager) {
|
|
|
13554
13554
|
if (result.status !== 0) {
|
|
13555
13555
|
throw new Error("domain-designer-cli not found");
|
|
13556
13556
|
}
|
|
13557
|
-
|
|
13558
|
-
|
|
13557
|
+
const paths = import_path.default.dirname(result.stdout.split("\n")[0].trim());
|
|
13558
|
+
for (let p of paths.split("\n")) {
|
|
13559
|
+
p = import_path.default.resolve(p.trim(), "..");
|
|
13560
|
+
if (verifyWebRoot(p)) {
|
|
13561
|
+
webRoot = p;
|
|
13562
|
+
break;
|
|
13563
|
+
}
|
|
13559
13564
|
p = import_path.default.resolve(p, "lib", "node_modules", "@ddd-tool", "domain-designer-cli");
|
|
13560
|
-
|
|
13565
|
+
if (verifyWebRoot(p)) {
|
|
13566
|
+
webRoot = p;
|
|
13567
|
+
break;
|
|
13568
|
+
}
|
|
13561
13569
|
}
|
|
13562
|
-
webRoot
|
|
13570
|
+
mustBeWebRoot(webRoot);
|
|
13563
13571
|
} else if (osType === "linux" || osType === "mac") {
|
|
13564
13572
|
const result = (0, import_child_process.spawnSync)("whereis domain-designer-cli", { encoding: "utf-8", shell: true });
|
|
13565
13573
|
if (result.status !== 0) {
|
|
13566
13574
|
throw new Error("domain-designer-cli not found");
|
|
13567
13575
|
}
|
|
13568
|
-
|
|
13569
|
-
|
|
13576
|
+
const paths = result.stdout.split("\n")[0].split(":")[1].trim();
|
|
13577
|
+
for (let p of paths.split(" ")) {
|
|
13578
|
+
p = import_path.default.resolve(import_path.default.dirname(p.trim()), "..");
|
|
13579
|
+
if (verifyWebRoot(p)) {
|
|
13580
|
+
webRoot = p;
|
|
13581
|
+
break;
|
|
13582
|
+
}
|
|
13570
13583
|
p = import_path.default.resolve(p, "lib", "node_modules", "@ddd-tool", "domain-designer-cli");
|
|
13571
|
-
|
|
13584
|
+
if (verifyWebRoot(p)) {
|
|
13585
|
+
webRoot = p;
|
|
13586
|
+
break;
|
|
13587
|
+
}
|
|
13572
13588
|
}
|
|
13573
|
-
webRoot
|
|
13589
|
+
mustBeWebRoot(webRoot);
|
|
13574
13590
|
} else if (osType === "undefined") {
|
|
13575
13591
|
throw new Error("unknown os type");
|
|
13576
13592
|
} else {
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.0-beta.
|
|
1
|
+
0.1.0-beta.5
|