bopodev 0.1.6 → 0.1.8

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 +9 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -323,13 +323,19 @@ async function hasExistingInstall(workspaceRoot) {
323
323
  }
324
324
 
325
325
  // src/commands/start.ts
326
- async function runStartCommand(cwd, options) {
327
- const workspaceRoot = await resolveWorkspaceRoot(cwd);
326
+ var defaultDeps2 = {
327
+ resolveWorkspaceRoot,
328
+ runCommandStreaming,
329
+ printBanner
330
+ };
331
+ async function runStartCommand(cwd, options, deps = defaultDeps2) {
332
+ const workspaceRoot = await deps.resolveWorkspaceRoot(cwd);
328
333
  if (!workspaceRoot) {
329
334
  throw new Error("Could not find a pnpm workspace root. Run this command from inside the Bopodev repo.");
330
335
  }
336
+ deps.printBanner();
331
337
  const script = options?.quiet === false ? "start" : "start:quiet";
332
- const code = await runCommandStreaming("pnpm", [script], { cwd: workspaceRoot });
338
+ const code = await deps.runCommandStreaming("pnpm", [script], { cwd: workspaceRoot });
333
339
  if (code !== 0) {
334
340
  throw new Error(`pnpm ${script} failed with exit code ${String(code)}`);
335
341
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bopodev",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "bin": {