@ddd-tool/domain-designer-cli 0.1.0-beta.4 → 0.1.0-beta.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.
@@ -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.4",
13510
+ "version": "0.1.0-beta.6",
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.4"
13525
+ "_id": "@ddd-tool/domain-designer-cli@0.1.0-beta.6"
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
- let p = import_path.default.resolve(import_path.default.dirname(result.stdout.split("\n")[0].trim()), "..");
13558
- if (!verifyWebRoot(p)) {
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
- mustBeWebRoot(p);
13565
+ if (verifyWebRoot(p)) {
13566
+ webRoot = p;
13567
+ break;
13568
+ }
13561
13569
  }
13562
- webRoot = p;
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
- let p = import_path.default.resolve(import_path.default.dirname(result.stdout.split("\n")[0].split(":")[1].trim()), "..");
13569
- if (!verifyWebRoot(p)) {
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
- mustBeWebRoot(p);
13584
+ if (verifyWebRoot(p)) {
13585
+ webRoot = p;
13586
+ break;
13587
+ }
13572
13588
  }
13573
- webRoot = p;
13589
+ mustBeWebRoot(webRoot);
13574
13590
  } else if (osType === "undefined") {
13575
13591
  throw new Error("unknown os type");
13576
13592
  } else {
@@ -14140,7 +14156,7 @@ var import_fs6 = __toESM(require("fs"), 1);
14140
14156
  var import_path7 = __toESM(require("path"), 1);
14141
14157
  var import_child_process5 = require("child_process");
14142
14158
 
14143
- // node_modules/.pnpm/@ddd-tool+domain-designer-core@0.1.0-beta.2/node_modules/@ddd-tool/domain-designer-core/index.js
14159
+ // node_modules/.pnpm/@ddd-tool+domain-designer-core@0.1.0-beta.5/node_modules/@ddd-tool/domain-designer-core/index.js
14144
14160
  function tr(t) {
14145
14161
  const e = t;
14146
14162
  return e && typeof e.actor == "function" && typeof e.startWorkflow == "function" && typeof e.defineUserStory == "function" && typeof e._getContext == "function" && typeof e.note == "function" && typeof e.info == "object" && typeof e.command == "function" && typeof e.facadeCmd == "function" && typeof e.agg == "function" && typeof e.event == "function" && typeof e.system == "function" && typeof e.policy == "function" && typeof e.service == "function" && typeof e.readModel == "function";
@@ -14874,7 +14890,7 @@ function Mn() {
14874
14890
  }
14875
14891
  process.env.NODE_ENV !== "production" && Mn();
14876
14892
 
14877
- // node_modules/.pnpm/@ddd-tool+domain-designer-g_362d88813f3b0dfc824996070056c685/node_modules/@ddd-tool/domain-designer-generator/index.js
14893
+ // node_modules/.pnpm/@ddd-tool+domain-designer-g_df80efa3415c88fc496f78b3e9988a46/node_modules/@ddd-tool/domain-designer-generator/index.js
14878
14894
  // @__NO_SIDE_EFFECTS__
14879
14895
  function Kn(e) {
14880
14896
  const n = /* @__PURE__ */ Object.create(null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ddd-tool/domain-designer-cli",
3
- "version": "0.1.0-beta.4",
3
+ "version": "0.1.0-beta.6",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "type": "module",
@@ -27,8 +27,8 @@
27
27
  "repository": "https://github.com/ddd-tool/domain-designer-cli-node",
28
28
  "license": "Apache-2.0",
29
29
  "devDependencies": {
30
- "@ddd-tool/domain-designer-core": "0.1.0-beta.2",
31
- "@ddd-tool/domain-designer-ui-component": "0.1.0-beta.3",
30
+ "@ddd-tool/domain-designer-core": "0.1.0-beta.5",
31
+ "@ddd-tool/domain-designer-ui-component": "0.1.0-beta.5",
32
32
  "@primeuix/themes": "^1.0.0",
33
33
  "@types/node": "^22.13.10",
34
34
  "@vitejs/plugin-vue": "^5.2.3",
@@ -39,7 +39,6 @@
39
39
  "primevue": "^4.3.2",
40
40
  "typescript": "^5.8.2",
41
41
  "vite": "^6.2.2",
42
- "vite-plugin-top-level-await": "^1.5.0",
43
42
  "vue": "^3.5.13",
44
43
  "vue-tsc": "^2.2.8",
45
44
  "zx": "^8.4.1"
@@ -1 +1 @@
1
- 0.1.0-beta.4
1
+ 0.1.0-beta.6
package/vite.config.ts CHANGED
@@ -2,17 +2,17 @@ import { fileURLToPath, URL } from 'url'
2
2
 
3
3
  import { defineConfig } from 'vite'
4
4
  import vue from '@vitejs/plugin-vue'
5
- import topLevelAwait from 'vite-plugin-top-level-await'
5
+ // import topLevelAwait from 'vite-plugin-top-level-await'
6
6
 
7
7
  export default defineConfig({
8
8
  plugins: [
9
9
  vue(),
10
- topLevelAwait({
11
- // The export name of top-level await promise for each chunk module
12
- promiseExportName: '__tla',
13
- // The function to generate import names of top-level await promise in each chunk module
14
- promiseImportName: (i) => `__tla_${i}`,
15
- }),
10
+ // topLevelAwait({
11
+ // // The export name of top-level await promise for each chunk module
12
+ // promiseExportName: '__tla',
13
+ // // The function to generate import names of top-level await promise in each chunk module
14
+ // promiseImportName: (i) => `__tla_${i}`,
15
+ // }),
16
16
  ],
17
17
  esbuild: {
18
18
  drop: ['console', 'debugger'], // 移除 console 和 debugger 语句