@bagelink/workspace 1.7.22 → 1.7.25

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/bin/bgl.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
  'use strict';
3
3
 
4
4
  const process = require('node:process');
5
- const workspace = require('../shared/workspace.QrDkf3TO.cjs');
5
+ const workspace = require('../shared/workspace.hvTUKTmw.cjs');
6
6
  require('node:fs');
7
7
  require('node:path');
8
8
  require('prompts');
package/dist/bin/bgl.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import process from 'node:process';
3
- import { k as initWorkspace, g as generateWorkspaceConfig, j as addProject, l as listProjects, i as isWorkspace, e as setupLint, h as generateSDKForWorkspace, f as generateSDK, r as runDev } from '../shared/workspace.DyRK_sN4.mjs';
3
+ import { k as initWorkspace, g as generateWorkspaceConfig, j as addProject, l as listProjects, i as isWorkspace, e as setupLint, h as generateSDKForWorkspace, f as generateSDK, r as runDev } from '../shared/workspace.DjVIGwgl.mjs';
4
4
  import 'node:fs';
5
5
  import 'node:path';
6
6
  import 'prompts';
package/dist/index.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
  const node_fs = require('node:fs');
4
4
  const node_path = require('node:path');
5
5
  const process = require('node:process');
6
- const workspace = require('./shared/workspace.QrDkf3TO.cjs');
6
+ const workspace = require('./shared/workspace.hvTUKTmw.cjs');
7
7
  require('prompts');
8
8
  require('node:child_process');
9
9
 
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { existsSync } from 'node:fs';
2
2
  import { resolve, join } from 'node:path';
3
3
  import process from 'node:process';
4
- import { g as generateWorkspaceConfig, s as setBuildEnvVars, w as writeNetlifyConfig } from './shared/workspace.DyRK_sN4.mjs';
5
- export { j as addProject, a as generateNetlifyConfig, b as generateNetlifyRedirect, f as generateSDK, h as generateSDKForWorkspace, c as generateWorkspaceConfigSync, d as getWorkspaceInfo, k as initWorkspace, i as isWorkspace, l as listProjects, r as runDev, e as setupLint } from './shared/workspace.DyRK_sN4.mjs';
4
+ import { g as generateWorkspaceConfig, s as setBuildEnvVars, w as writeNetlifyConfig } from './shared/workspace.DjVIGwgl.mjs';
5
+ export { j as addProject, a as generateNetlifyConfig, b as generateNetlifyRedirect, f as generateSDK, h as generateSDKForWorkspace, c as generateWorkspaceConfigSync, d as getWorkspaceInfo, k as initWorkspace, i as isWorkspace, l as listProjects, r as runDev, e as setupLint } from './shared/workspace.DjVIGwgl.mjs';
6
6
  import 'prompts';
7
7
  import 'node:child_process';
8
8
 
@@ -311,7 +311,8 @@ function clearAndPrintServers() {
311
311
  async function runDev(filter = "./[!shared]*") {
312
312
  console.log(`${colors.dim}Starting dev servers with filter: ${filter}${colors.reset}
313
313
  `);
314
- const proc = spawn("bun", ["run", "--filter", filter, "dev"], {
314
+ const command = `bun run --filter '${filter}' dev`;
315
+ const proc = spawn(command, {
315
316
  cwd: process.cwd(),
316
317
  stdio: ["inherit", "pipe", "pipe"],
317
318
  shell: true
@@ -322,6 +323,9 @@ async function runDev(filter = "./[!shared]*") {
322
323
  if (!line.trim()) return;
323
324
  if (seenLines.has(line)) return;
324
325
  seenLines.add(line);
326
+ if (seenLines.size <= 10) {
327
+ console.log(`${colors.dim}[DEBUG] Line: "${line}"${colors.reset}`);
328
+ }
325
329
  const projectMatch = line.match(/^(\w+)\s+dev\s+\$/);
326
330
  if (projectMatch) {
327
331
  const name = projectMatch[1];
@@ -346,6 +350,9 @@ async function runDev(filter = "./[!shared]*") {
346
350
  proc.stdout?.setEncoding("utf8");
347
351
  proc.stderr?.setEncoding("utf8");
348
352
  proc.stdout?.on("data", (data) => {
353
+ if (servers.size === 0) {
354
+ console.log(`${colors.dim}Receiving output...${colors.reset}`);
355
+ }
349
356
  stdoutBuffer += data;
350
357
  const lines = stdoutBuffer.split("\n");
351
358
  stdoutBuffer = lines.pop() || "";
@@ -318,7 +318,8 @@ function clearAndPrintServers() {
318
318
  async function runDev(filter = "./[!shared]*") {
319
319
  console.log(`${colors.dim}Starting dev servers with filter: ${filter}${colors.reset}
320
320
  `);
321
- const proc = node_child_process.spawn("bun", ["run", "--filter", filter, "dev"], {
321
+ const command = `bun run --filter '${filter}' dev`;
322
+ const proc = node_child_process.spawn(command, {
322
323
  cwd: process__default.cwd(),
323
324
  stdio: ["inherit", "pipe", "pipe"],
324
325
  shell: true
@@ -329,6 +330,9 @@ async function runDev(filter = "./[!shared]*") {
329
330
  if (!line.trim()) return;
330
331
  if (seenLines.has(line)) return;
331
332
  seenLines.add(line);
333
+ if (seenLines.size <= 10) {
334
+ console.log(`${colors.dim}[DEBUG] Line: "${line}"${colors.reset}`);
335
+ }
332
336
  const projectMatch = line.match(/^(\w+)\s+dev\s+\$/);
333
337
  if (projectMatch) {
334
338
  const name = projectMatch[1];
@@ -353,6 +357,9 @@ async function runDev(filter = "./[!shared]*") {
353
357
  proc.stdout?.setEncoding("utf8");
354
358
  proc.stderr?.setEncoding("utf8");
355
359
  proc.stdout?.on("data", (data) => {
360
+ if (servers.size === 0) {
361
+ console.log(`${colors.dim}Receiving output...${colors.reset}`);
362
+ }
356
363
  stdoutBuffer += data;
357
364
  const lines = stdoutBuffer.split("\n");
358
365
  stdoutBuffer = lines.pop() || "";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/workspace",
3
3
  "type": "module",
4
- "version": "1.7.22",
4
+ "version": "1.7.25",
5
5
  "description": "Monorepo workspace tooling for Bagel projects with proxy and config management",
6
6
  "author": {
7
7
  "name": "Bagel Studio",
package/src/dev.ts CHANGED
@@ -44,7 +44,8 @@ function clearAndPrintServers() {
44
44
  export async function runDev(filter = './[!shared]*') {
45
45
  console.log(`${colors.dim}Starting dev servers with filter: ${filter}${colors.reset}\n`)
46
46
 
47
- const proc = spawn('bun', ['run', '--filter', filter, 'dev'], {
47
+ const command = `bun run --filter '${filter}' dev`
48
+ const proc = spawn(command, {
48
49
  cwd: process.cwd(),
49
50
  stdio: ['inherit', 'pipe', 'pipe'],
50
51
  shell: true,
@@ -60,6 +61,11 @@ export async function runDev(filter = './[!shared]*') {
60
61
  if (seenLines.has(line)) return
61
62
  seenLines.add(line)
62
63
 
64
+ // DEBUG: Show first 10 unique lines to understand the format
65
+ if (seenLines.size <= 10) {
66
+ console.log(`${colors.dim}[DEBUG] Line: "${line}"${colors.reset}`)
67
+ }
68
+
63
69
  // Extract project name from "project dev $ vite"
64
70
  const projectMatch = line.match(/^(\w+)\s+dev\s+\$/)
65
71
  if (projectMatch) {
@@ -91,6 +97,11 @@ export async function runDev(filter = './[!shared]*') {
91
97
  proc.stderr?.setEncoding('utf8')
92
98
 
93
99
  proc.stdout?.on('data', (data: string) => {
100
+ // Debug: show we're receiving data
101
+ if (servers.size === 0) {
102
+ console.log(`${colors.dim}Receiving output...${colors.reset}`)
103
+ }
104
+
94
105
  stdoutBuffer += data
95
106
  const lines = stdoutBuffer.split('\n')
96
107
  stdoutBuffer = lines.pop() || ''