@bagelink/workspace 1.7.25 → 1.7.29
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.DjVIGwgl.mjs → workspace.B3TYwgq_.mjs} +8 -7
- package/dist/shared/{workspace.hvTUKTmw.cjs → workspace.ChDOzr7c.cjs} +8 -7
- package/package.json +1 -1
- package/src/dev.ts +11 -12
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.B3TYwgq_.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.ChDOzr7c.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.B3TYwgq_.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.B3TYwgq_.mjs';
|
|
6
6
|
import 'prompts';
|
|
7
7
|
import 'node:child_process';
|
|
8
8
|
|
|
@@ -323,13 +323,11 @@ async function runDev(filter = "./[!shared]*") {
|
|
|
323
323
|
if (!line.trim()) return;
|
|
324
324
|
if (seenLines.has(line)) return;
|
|
325
325
|
seenLines.add(line);
|
|
326
|
-
|
|
327
|
-
console.log(`${colors.dim}[DEBUG] Line: "${line}"${colors.reset}`);
|
|
328
|
-
}
|
|
329
|
-
const projectMatch = line.match(/^(\w+)\s+dev\s+\$/);
|
|
326
|
+
const projectMatch = line.match(/^(\w+)\s+dev:/);
|
|
330
327
|
if (projectMatch) {
|
|
331
328
|
const name = projectMatch[1];
|
|
332
329
|
if (!servers.has(name)) {
|
|
330
|
+
console.log(`${colors.dim}[DEBUG] Detected project: ${name}${colors.reset}`);
|
|
333
331
|
servers.set(name, { name, status: "starting" });
|
|
334
332
|
clearAndPrintServers();
|
|
335
333
|
}
|
|
@@ -337,12 +335,15 @@ async function runDev(filter = "./[!shared]*") {
|
|
|
337
335
|
const portMatch = line.match(/Local:\s+http:\/\/localhost:(\d+)/);
|
|
338
336
|
if (portMatch) {
|
|
339
337
|
const port = Number.parseInt(portMatch[1], 10);
|
|
340
|
-
|
|
341
|
-
|
|
338
|
+
const projectInLine = line.match(/^(\w+)\s+dev:/);
|
|
339
|
+
if (projectInLine) {
|
|
340
|
+
const name = projectInLine[1];
|
|
341
|
+
const info = servers.get(name);
|
|
342
|
+
console.log(`${colors.dim}[DEBUG] Port ${port} for project: ${name}, exists: ${!!info}, hasPort: ${info?.port}${colors.reset}`);
|
|
343
|
+
if (info && !info.port) {
|
|
342
344
|
info.port = port;
|
|
343
345
|
info.status = "ready";
|
|
344
346
|
clearAndPrintServers();
|
|
345
|
-
break;
|
|
346
347
|
}
|
|
347
348
|
}
|
|
348
349
|
}
|
|
@@ -330,13 +330,11 @@ async function runDev(filter = "./[!shared]*") {
|
|
|
330
330
|
if (!line.trim()) return;
|
|
331
331
|
if (seenLines.has(line)) return;
|
|
332
332
|
seenLines.add(line);
|
|
333
|
-
|
|
334
|
-
console.log(`${colors.dim}[DEBUG] Line: "${line}"${colors.reset}`);
|
|
335
|
-
}
|
|
336
|
-
const projectMatch = line.match(/^(\w+)\s+dev\s+\$/);
|
|
333
|
+
const projectMatch = line.match(/^(\w+)\s+dev:/);
|
|
337
334
|
if (projectMatch) {
|
|
338
335
|
const name = projectMatch[1];
|
|
339
336
|
if (!servers.has(name)) {
|
|
337
|
+
console.log(`${colors.dim}[DEBUG] Detected project: ${name}${colors.reset}`);
|
|
340
338
|
servers.set(name, { name, status: "starting" });
|
|
341
339
|
clearAndPrintServers();
|
|
342
340
|
}
|
|
@@ -344,12 +342,15 @@ async function runDev(filter = "./[!shared]*") {
|
|
|
344
342
|
const portMatch = line.match(/Local:\s+http:\/\/localhost:(\d+)/);
|
|
345
343
|
if (portMatch) {
|
|
346
344
|
const port = Number.parseInt(portMatch[1], 10);
|
|
347
|
-
|
|
348
|
-
|
|
345
|
+
const projectInLine = line.match(/^(\w+)\s+dev:/);
|
|
346
|
+
if (projectInLine) {
|
|
347
|
+
const name = projectInLine[1];
|
|
348
|
+
const info = servers.get(name);
|
|
349
|
+
console.log(`${colors.dim}[DEBUG] Port ${port} for project: ${name}, exists: ${!!info}, hasPort: ${info?.port}${colors.reset}`);
|
|
350
|
+
if (info && !info.port) {
|
|
349
351
|
info.port = port;
|
|
350
352
|
info.status = "ready";
|
|
351
353
|
clearAndPrintServers();
|
|
352
|
-
break;
|
|
353
354
|
}
|
|
354
355
|
}
|
|
355
356
|
}
|
package/package.json
CHANGED
package/src/dev.ts
CHANGED
|
@@ -61,33 +61,32 @@ export async function runDev(filter = './[!shared]*') {
|
|
|
61
61
|
if (seenLines.has(line)) return
|
|
62
62
|
seenLines.add(line)
|
|
63
63
|
|
|
64
|
-
//
|
|
65
|
-
|
|
66
|
-
console.log(`${colors.dim}[DEBUG] Line: "${line}"${colors.reset}`)
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
// Extract project name from "project dev $ vite"
|
|
70
|
-
const projectMatch = line.match(/^(\w+)\s+dev\s+\$/)
|
|
64
|
+
// Extract project name from "project dev: ..."
|
|
65
|
+
const projectMatch = line.match(/^(\w+)\s+dev:/)
|
|
71
66
|
if (projectMatch) {
|
|
72
67
|
const name = projectMatch[1]
|
|
73
68
|
if (!servers.has(name)) {
|
|
69
|
+
console.log(`${colors.dim}[DEBUG] Detected project: ${name}${colors.reset}`)
|
|
74
70
|
servers.set(name, { name, status: 'starting' })
|
|
75
71
|
clearAndPrintServers()
|
|
76
72
|
}
|
|
77
73
|
}
|
|
78
74
|
|
|
79
|
-
// Extract port from "Local:
|
|
75
|
+
// Extract port from "project dev: ➜ Local: http://localhost:5173/"
|
|
80
76
|
const portMatch = line.match(/Local:\s+http:\/\/localhost:(\d+)/)
|
|
81
77
|
if (portMatch) {
|
|
82
78
|
const port = Number.parseInt(portMatch[1], 10)
|
|
83
79
|
|
|
84
|
-
//
|
|
85
|
-
|
|
86
|
-
|
|
80
|
+
// Extract project name from this line
|
|
81
|
+
const projectInLine = line.match(/^(\w+)\s+dev:/)
|
|
82
|
+
if (projectInLine) {
|
|
83
|
+
const name = projectInLine[1]
|
|
84
|
+
const info = servers.get(name)
|
|
85
|
+
console.log(`${colors.dim}[DEBUG] Port ${port} for project: ${name}, exists: ${!!info}, hasPort: ${info?.port}${colors.reset}`)
|
|
86
|
+
if (info && !info.port) {
|
|
87
87
|
info.port = port
|
|
88
88
|
info.status = 'ready'
|
|
89
89
|
clearAndPrintServers()
|
|
90
|
-
break
|
|
91
90
|
}
|
|
92
91
|
}
|
|
93
92
|
}
|