@bagelink/workspace 1.7.53 → 1.7.57

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/README.md CHANGED
@@ -166,7 +166,7 @@ import { useWorkspace, getApiUrl } from '@bagelink/workspace'
166
166
 
167
167
  // In your app setup
168
168
  const { proxy, host, mode } = useWorkspace()
169
- const auth = initAuth({ baseURL: proxy })
169
+ const auth = createAuth({ baseURL: proxy })
170
170
 
171
171
  // Or get full API URL
172
172
  const apiUrl = getApiUrl() // 'https://project.bagel.to/api'
@@ -177,10 +177,10 @@ const apiUrl = getApiUrl() // 'https://project.bagel.to/api'
177
177
  ```vue
178
178
  <script setup lang="ts">
179
179
  import { useWorkspace } from '@bagelink/workspace'
180
- import { initAuth } from '@bagelink/auth'
180
+ import { createAuth } from '@bagelink/auth'
181
181
 
182
182
  const { proxy, host, mode } = useWorkspace()
183
- const auth = initAuth({ baseURL: proxy })
183
+ const auth = createAuth({ baseURL: proxy })
184
184
 
185
185
  console.log('API Host:', host)
186
186
  console.log('Environment:', mode)
package/bin/bgl.ts CHANGED
@@ -109,7 +109,7 @@ SDK Commands:
109
109
  }
110
110
  else if (command === 'dev') {
111
111
  // Get optional filter argument and additional args
112
- const filter = subcommand || './[!shared]*'
112
+ const filter = subcommand || './!shared*'
113
113
  const additionalArgs = args // Any additional args after filter
114
114
  const exitCode = await runDev(filter, additionalArgs)
115
115
  process.exit(exitCode)
@@ -124,7 +124,7 @@ Usage:
124
124
  bgl init --workspace Create a new workspace with multiple projects
125
125
  bgl add <name> Add a new project to workspace
126
126
  bgl list List all projects in workspace
127
- bgl dev [filter] [...args] Run dev servers with clean output (default: './[!shared]*')
127
+ bgl dev [filter] [...args] Run dev servers with clean output (default: './!shared*')
128
128
  Additional args are passed to vite (e.g., --mode localhost)
129
129
  bgl lint init Set up linting (auto-detects workspace)
130
130
  bgl sdk generate Generate SDK (auto-detects workspace)
package/dist/bin/bgl.cjs CHANGED
@@ -61,7 +61,7 @@ function clearAndPrintServers() {
61
61
  }
62
62
  console.log("");
63
63
  }
64
- async function runDev(filter = "./[!shared]*", additionalArgs = []) {
64
+ async function runDev(filter = "./!shared*", additionalArgs = []) {
65
65
  const argsStr = additionalArgs.length > 0 ? ` -- ${additionalArgs.join(" ")}` : "";
66
66
  console.log(`${colors.dim}Starting dev servers with filter: ${filter}${argsStr}${colors.reset}
67
67
  `);
@@ -773,8 +773,8 @@ function createWorkspaceRoot(root, name, projectId) {
773
773
  scripts: {
774
774
  "dev": "bgl dev",
775
775
  "dev:local": "bgl dev --mode localhost",
776
- "dev:verbose": "bun run --filter './[!shared]*' dev",
777
- "build": "bun run --filter './[!shared]*' build",
776
+ "dev:verbose": "bun run --filter './!shared*' dev",
777
+ "build": "bun run --filter './!shared*' build",
778
778
  "typecheck": "tsc --noEmit",
779
779
  "lint": "eslint . --cache",
780
780
  "lint:fix": "eslint . --cache --fix"
@@ -1188,7 +1188,7 @@ SDK Commands:
1188
1188
  process__default.exit(1);
1189
1189
  }
1190
1190
  } else if (command === "dev") {
1191
- const filter = subcommand || "./[!shared]*";
1191
+ const filter = subcommand || "./!shared*";
1192
1192
  const additionalArgs = args;
1193
1193
  const exitCode = await runDev(filter, additionalArgs);
1194
1194
  process__default.exit(exitCode);
@@ -1202,7 +1202,7 @@ Usage:
1202
1202
  bgl init --workspace Create a new workspace with multiple projects
1203
1203
  bgl add <name> Add a new project to workspace
1204
1204
  bgl list List all projects in workspace
1205
- bgl dev [filter] [...args] Run dev servers with clean output (default: './[!shared]*')
1205
+ bgl dev [filter] [...args] Run dev servers with clean output (default: './!shared*')
1206
1206
  Additional args are passed to vite (e.g., --mode localhost)
1207
1207
  bgl lint init Set up linting (auto-detects workspace)
1208
1208
  bgl sdk generate Generate SDK (auto-detects workspace)
package/dist/bin/bgl.mjs CHANGED
@@ -54,7 +54,7 @@ function clearAndPrintServers() {
54
54
  }
55
55
  console.log("");
56
56
  }
57
- async function runDev(filter = "./[!shared]*", additionalArgs = []) {
57
+ async function runDev(filter = "./!shared*", additionalArgs = []) {
58
58
  const argsStr = additionalArgs.length > 0 ? ` -- ${additionalArgs.join(" ")}` : "";
59
59
  console.log(`${colors.dim}Starting dev servers with filter: ${filter}${argsStr}${colors.reset}
60
60
  `);
@@ -766,8 +766,8 @@ function createWorkspaceRoot(root, name, projectId) {
766
766
  scripts: {
767
767
  "dev": "bgl dev",
768
768
  "dev:local": "bgl dev --mode localhost",
769
- "dev:verbose": "bun run --filter './[!shared]*' dev",
770
- "build": "bun run --filter './[!shared]*' build",
769
+ "dev:verbose": "bun run --filter './!shared*' dev",
770
+ "build": "bun run --filter './!shared*' build",
771
771
  "typecheck": "tsc --noEmit",
772
772
  "lint": "eslint . --cache",
773
773
  "lint:fix": "eslint . --cache --fix"
@@ -1181,7 +1181,7 @@ SDK Commands:
1181
1181
  process.exit(1);
1182
1182
  }
1183
1183
  } else if (command === "dev") {
1184
- const filter = subcommand || "./[!shared]*";
1184
+ const filter = subcommand || "./!shared*";
1185
1185
  const additionalArgs = args;
1186
1186
  const exitCode = await runDev(filter, additionalArgs);
1187
1187
  process.exit(exitCode);
@@ -1195,7 +1195,7 @@ Usage:
1195
1195
  bgl init --workspace Create a new workspace with multiple projects
1196
1196
  bgl add <name> Add a new project to workspace
1197
1197
  bgl list List all projects in workspace
1198
- bgl dev [filter] [...args] Run dev servers with clean output (default: './[!shared]*')
1198
+ bgl dev [filter] [...args] Run dev servers with clean output (default: './!shared*')
1199
1199
  Additional args are passed to vite (e.g., --mode localhost)
1200
1200
  bgl lint init Set up linting (auto-detects workspace)
1201
1201
  bgl sdk generate Generate SDK (auto-detects workspace)
@@ -21,7 +21,7 @@ interface RuntimeWorkspaceConfig {
21
21
  * import { useWorkspace } from '@bagelink/workspace'
22
22
  *
23
23
  * const { proxy, host } = useWorkspace()
24
- * const auth = initAuth({ baseURL: proxy })
24
+ * const auth = createAuth({ baseURL: proxy })
25
25
  * ```
26
26
  *
27
27
  * @example In Vue component
@@ -21,7 +21,7 @@ interface RuntimeWorkspaceConfig {
21
21
  * import { useWorkspace } from '@bagelink/workspace'
22
22
  *
23
23
  * const { proxy, host } = useWorkspace()
24
- * const auth = initAuth({ baseURL: proxy })
24
+ * const auth = createAuth({ baseURL: proxy })
25
25
  * ```
26
26
  *
27
27
  * @example In Vue component
@@ -21,7 +21,7 @@ interface RuntimeWorkspaceConfig {
21
21
  * import { useWorkspace } from '@bagelink/workspace'
22
22
  *
23
23
  * const { proxy, host } = useWorkspace()
24
- * const auth = initAuth({ baseURL: proxy })
24
+ * const auth = createAuth({ baseURL: proxy })
25
25
  * ```
26
26
  *
27
27
  * @example In Vue component
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/workspace",
3
3
  "type": "module",
4
- "version": "1.7.53",
4
+ "version": "1.7.57",
5
5
  "description": "Monorepo workspace tooling for Bagel projects with proxy and config management",
6
6
  "author": {
7
7
  "name": "Bagel Studio",
package/src/composable.ts CHANGED
@@ -22,7 +22,7 @@ export interface RuntimeWorkspaceConfig {
22
22
  * import { useWorkspace } from '@bagelink/workspace'
23
23
  *
24
24
  * const { proxy, host } = useWorkspace()
25
- * const auth = initAuth({ baseURL: proxy })
25
+ * const auth = createAuth({ baseURL: proxy })
26
26
  * ```
27
27
  *
28
28
  * @example In Vue component
package/src/dev.ts CHANGED
@@ -41,7 +41,7 @@ function clearAndPrintServers() {
41
41
  console.log('')
42
42
  }
43
43
 
44
- export async function runDev(filter = './[!shared]*', additionalArgs: string[] = []) {
44
+ export async function runDev(filter = './!shared*', additionalArgs: string[] = []) {
45
45
  const argsStr = additionalArgs.length > 0 ? ` -- ${additionalArgs.join(' ')}` : ''
46
46
  console.log(`${colors.dim}Starting dev servers with filter: ${filter}${argsStr}${colors.reset}\n`)
47
47
 
package/src/workspace.ts CHANGED
@@ -89,8 +89,8 @@ function createWorkspaceRoot(root: string, name: string, projectId: string): voi
89
89
  scripts: {
90
90
  'dev': 'bgl dev',
91
91
  'dev:local': 'bgl dev --mode localhost',
92
- 'dev:verbose': 'bun run --filter \'./[!shared]*\' dev',
93
- 'build': 'bun run --filter \'./[!shared]*\' build',
92
+ 'dev:verbose': 'bun run --filter \'./!shared*\' dev',
93
+ 'build': 'bun run --filter \'./!shared*\' build',
94
94
  'typecheck': 'tsc --noEmit',
95
95
  'lint': 'eslint . --cache',
96
96
  'lint:fix': 'eslint . --cache --fix',