@bagelink/workspace 1.7.24 → 1.7.27
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.DL_Ay2mI.cjs → workspace.CFgMNgfN.cjs} +6 -4
- package/dist/shared/{workspace.CJj5dITU.mjs → workspace.DChvMH3n.mjs} +6 -4
- package/package.json +1 -1
- package/src/dev.ts +9 -7
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.DChvMH3n.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.CFgMNgfN.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.DChvMH3n.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.DChvMH3n.mjs';
|
|
6
6
|
import 'prompts';
|
|
7
7
|
import 'node:child_process';
|
|
8
8
|
|
|
@@ -330,7 +330,7 @@ async function runDev(filter = "./[!shared]*") {
|
|
|
330
330
|
if (!line.trim()) return;
|
|
331
331
|
if (seenLines.has(line)) return;
|
|
332
332
|
seenLines.add(line);
|
|
333
|
-
const projectMatch = line.match(/^(\w+)\s+dev
|
|
333
|
+
const projectMatch = line.match(/^(\w+)\s+dev:/);
|
|
334
334
|
if (projectMatch) {
|
|
335
335
|
const name = projectMatch[1];
|
|
336
336
|
if (!servers.has(name)) {
|
|
@@ -341,12 +341,14 @@ async function runDev(filter = "./[!shared]*") {
|
|
|
341
341
|
const portMatch = line.match(/Local:\s+http:\/\/localhost:(\d+)/);
|
|
342
342
|
if (portMatch) {
|
|
343
343
|
const port = Number.parseInt(portMatch[1], 10);
|
|
344
|
-
|
|
345
|
-
|
|
344
|
+
const projectInLine = line.match(/^(\w+)\s+dev:/);
|
|
345
|
+
if (projectInLine) {
|
|
346
|
+
const name = projectInLine[1];
|
|
347
|
+
const info = servers.get(name);
|
|
348
|
+
if (info && !info.port) {
|
|
346
349
|
info.port = port;
|
|
347
350
|
info.status = "ready";
|
|
348
351
|
clearAndPrintServers();
|
|
349
|
-
break;
|
|
350
352
|
}
|
|
351
353
|
}
|
|
352
354
|
}
|
|
@@ -323,7 +323,7 @@ async function runDev(filter = "./[!shared]*") {
|
|
|
323
323
|
if (!line.trim()) return;
|
|
324
324
|
if (seenLines.has(line)) return;
|
|
325
325
|
seenLines.add(line);
|
|
326
|
-
const projectMatch = line.match(/^(\w+)\s+dev
|
|
326
|
+
const projectMatch = line.match(/^(\w+)\s+dev:/);
|
|
327
327
|
if (projectMatch) {
|
|
328
328
|
const name = projectMatch[1];
|
|
329
329
|
if (!servers.has(name)) {
|
|
@@ -334,12 +334,14 @@ async function runDev(filter = "./[!shared]*") {
|
|
|
334
334
|
const portMatch = line.match(/Local:\s+http:\/\/localhost:(\d+)/);
|
|
335
335
|
if (portMatch) {
|
|
336
336
|
const port = Number.parseInt(portMatch[1], 10);
|
|
337
|
-
|
|
338
|
-
|
|
337
|
+
const projectInLine = line.match(/^(\w+)\s+dev:/);
|
|
338
|
+
if (projectInLine) {
|
|
339
|
+
const name = projectInLine[1];
|
|
340
|
+
const info = servers.get(name);
|
|
341
|
+
if (info && !info.port) {
|
|
339
342
|
info.port = port;
|
|
340
343
|
info.status = "ready";
|
|
341
344
|
clearAndPrintServers();
|
|
342
|
-
break;
|
|
343
345
|
}
|
|
344
346
|
}
|
|
345
347
|
}
|
package/package.json
CHANGED
package/src/dev.ts
CHANGED
|
@@ -61,8 +61,8 @@ export async function runDev(filter = './[!shared]*') {
|
|
|
61
61
|
if (seenLines.has(line)) return
|
|
62
62
|
seenLines.add(line)
|
|
63
63
|
|
|
64
|
-
// Extract project name from "project dev
|
|
65
|
-
const projectMatch = line.match(/^(\w+)\s+dev
|
|
64
|
+
// Extract project name from "project dev: ..."
|
|
65
|
+
const projectMatch = line.match(/^(\w+)\s+dev:/)
|
|
66
66
|
if (projectMatch) {
|
|
67
67
|
const name = projectMatch[1]
|
|
68
68
|
if (!servers.has(name)) {
|
|
@@ -71,18 +71,20 @@ export async function runDev(filter = './[!shared]*') {
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
// Extract port from "Local:
|
|
74
|
+
// Extract port from "project dev: ➜ Local: http://localhost:5173/"
|
|
75
75
|
const portMatch = line.match(/Local:\s+http:\/\/localhost:(\d+)/)
|
|
76
76
|
if (portMatch) {
|
|
77
77
|
const port = Number.parseInt(portMatch[1], 10)
|
|
78
78
|
|
|
79
|
-
//
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
// Extract project name from this line
|
|
80
|
+
const projectInLine = line.match(/^(\w+)\s+dev:/)
|
|
81
|
+
if (projectInLine) {
|
|
82
|
+
const name = projectInLine[1]
|
|
83
|
+
const info = servers.get(name)
|
|
84
|
+
if (info && !info.port) {
|
|
82
85
|
info.port = port
|
|
83
86
|
info.status = 'ready'
|
|
84
87
|
clearAndPrintServers()
|
|
85
|
-
break
|
|
86
88
|
}
|
|
87
89
|
}
|
|
88
90
|
}
|