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.
- package/dist/index.js +16 -14
- 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 (
|
|
93258
|
-
|
|
93259
|
-
|
|
93260
|
-
|
|
93261
|
-
|
|
93262
|
-
|
|
93263
|
-
|
|
93264
|
-
|
|
93265
|
-
|
|
93266
|
-
|
|
93267
|
-
|
|
93268
|
-
|
|
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.
|
|
99893
|
+
version: "0.1.14",
|
|
99892
99894
|
type: "module",
|
|
99893
99895
|
bin: {
|
|
99894
99896
|
schub: "./dist/index.js"
|