@bagelink/workspace 1.7.22 → 1.7.24
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 +1 -1
- package/dist/bin/bgl.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +2 -2
- package/dist/shared/{workspace.DyRK_sN4.mjs → workspace.CJj5dITU.mjs} +5 -1
- package/dist/shared/{workspace.QrDkf3TO.cjs → workspace.DL_Ay2mI.cjs} +5 -1
- package/package.json +1 -1
- package/src/dev.ts +7 -1
package/dist/bin/bgl.cjs
CHANGED
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.
|
|
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.CJj5dITU.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.
|
|
6
|
+
const workspace = require('./shared/workspace.DL_Ay2mI.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.
|
|
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.
|
|
4
|
+
import { g as generateWorkspaceConfig, s as setBuildEnvVars, w as writeNetlifyConfig } from './shared/workspace.CJj5dITU.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.CJj5dITU.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
|
|
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
|
|
@@ -346,6 +347,9 @@ async function runDev(filter = "./[!shared]*") {
|
|
|
346
347
|
proc.stdout?.setEncoding("utf8");
|
|
347
348
|
proc.stderr?.setEncoding("utf8");
|
|
348
349
|
proc.stdout?.on("data", (data) => {
|
|
350
|
+
if (servers.size === 0) {
|
|
351
|
+
console.log(`${colors.dim}Receiving output...${colors.reset}`);
|
|
352
|
+
}
|
|
349
353
|
stdoutBuffer += data;
|
|
350
354
|
const lines = stdoutBuffer.split("\n");
|
|
351
355
|
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
|
|
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
|
|
@@ -353,6 +354,9 @@ async function runDev(filter = "./[!shared]*") {
|
|
|
353
354
|
proc.stdout?.setEncoding("utf8");
|
|
354
355
|
proc.stderr?.setEncoding("utf8");
|
|
355
356
|
proc.stdout?.on("data", (data) => {
|
|
357
|
+
if (servers.size === 0) {
|
|
358
|
+
console.log(`${colors.dim}Receiving output...${colors.reset}`);
|
|
359
|
+
}
|
|
356
360
|
stdoutBuffer += data;
|
|
357
361
|
const lines = stdoutBuffer.split("\n");
|
|
358
362
|
stdoutBuffer = lines.pop() || "";
|
package/package.json
CHANGED
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
|
|
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,
|
|
@@ -91,6 +92,11 @@ export async function runDev(filter = './[!shared]*') {
|
|
|
91
92
|
proc.stderr?.setEncoding('utf8')
|
|
92
93
|
|
|
93
94
|
proc.stdout?.on('data', (data: string) => {
|
|
95
|
+
// Debug: show we're receiving data
|
|
96
|
+
if (servers.size === 0) {
|
|
97
|
+
console.log(`${colors.dim}Receiving output...${colors.reset}`)
|
|
98
|
+
}
|
|
99
|
+
|
|
94
100
|
stdoutBuffer += data
|
|
95
101
|
const lines = stdoutBuffer.split('\n')
|
|
96
102
|
stdoutBuffer = lines.pop() || ''
|