@kaddo/cli 3.110.0 → 3.110.1

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 +8 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -20796,11 +20796,15 @@ function isPortAvailable(port, host) {
20796
20796
  function resolveStaticDir() {
20797
20797
  const __dirname = path10.dirname(fileURLToPath2(import.meta.url));
20798
20798
  const candidates = [
20799
- // Bundled inside CLI dist (npm install)
20800
- path10.resolve(__dirname, "admin-dist"),
20801
- // Monorepo development
20799
+ // Monorepo development: prefer the freshly built admin over the copy bundled into the CLI dist.
20800
+ // The CLI build copies admin/dist into dist/admin-dist, but that copy can be stale when the admin
20801
+ // was rebuilt after the CLI (build order is not guaranteed in `pnpm -r build`). Serving the admin
20802
+ // package's own dist first ensures `kaddo admin` always shows the current frontend in dev. This
20803
+ // path does not exist in a published npm install (admin is private), so it falls back below.
20802
20804
  path10.resolve(__dirname, "..", "..", "admin", "dist"),
20803
- path10.resolve(__dirname, "..", "node_modules", "@kaddo", "admin", "dist")
20805
+ path10.resolve(__dirname, "..", "node_modules", "@kaddo", "admin", "dist"),
20806
+ // Bundled inside CLI dist (npm install)
20807
+ path10.resolve(__dirname, "admin-dist")
20804
20808
  ];
20805
20809
  for (const c of candidates) {
20806
20810
  if (exists(join(c, "index.html"))) return c;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaddo/cli",
3
- "version": "3.110.0",
3
+ "version": "3.110.1",
4
4
  "description": "Knowledge Driven Development toolkit",
5
5
  "license": "MIT",
6
6
  "repository": {