schub 0.1.13 → 0.1.14

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 +16 -14
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -93254,23 +93254,25 @@ var runDashboard = async (startDir, options = {}) => {
93254
93254
  const waitForPort = waitForPortOverride ?? waitForPortReady;
93255
93255
  if (mode === "dev") {
93256
93256
  const workspaceRoot = resolveDashboardRoot(startDir);
93257
- if (!workspaceRoot) {
93258
- throw new Error("Dashboard workspace not found. NODE_ENV=development requires the schub monorepo.");
93259
- }
93260
- const resolvedOpenUrl2 = openUrl ?? buildDashboardDefaultUrl(resolvedEnv, "dev");
93261
- return runWorkspaceDashboard(workspaceRoot, {
93262
- spawner,
93263
- opener,
93264
- buildOpenCommand,
93265
- env: resolvedEnv,
93266
- waitForPort,
93267
- openUrl: resolvedOpenUrl2,
93268
- onExit
93269
- });
93257
+ if (workspaceRoot) {
93258
+ const resolvedOpenUrl2 = openUrl ?? buildDashboardDefaultUrl(resolvedEnv, "dev");
93259
+ return runWorkspaceDashboard(workspaceRoot, {
93260
+ spawner,
93261
+ opener,
93262
+ buildOpenCommand,
93263
+ env: resolvedEnv,
93264
+ waitForPort,
93265
+ openUrl: resolvedOpenUrl2,
93266
+ onExit
93267
+ });
93268
+ }
93270
93269
  }
93271
93270
  const cliPath = bundledCliPath ?? resolveCliEntryPath2();
93272
93271
  const bundledRoot = cliPath ? resolveBundledDashboardRoot(cliPath) : null;
93273
93272
  if (!bundledRoot) {
93273
+ if (mode === "dev") {
93274
+ throw new Error("Dashboard workspace not found for dev mode, and bundled assets are missing. Run from the schub monorepo or build bundled assets.");
93275
+ }
93274
93276
  throw new Error("Dashboard not found. Run 'bun run build:bundle' to include dashboard assets.");
93275
93277
  }
93276
93278
  const resolvedOpenUrl = openUrl ?? buildDashboardDefaultUrl(resolvedEnv, "bundled");
@@ -99888,7 +99890,7 @@ var import_react60 = __toESM(require_react(), 1);
99888
99890
  // package.json
99889
99891
  var package_default = {
99890
99892
  name: "schub",
99891
- version: "0.1.13",
99893
+ version: "0.1.14",
99892
99894
  type: "module",
99893
99895
  bin: {
99894
99896
  schub: "./dist/index.js"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "schub",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "schub": "./dist/index.js"