@bagelink/workspace 1.7.2 → 1.7.3

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
@@ -55,7 +55,7 @@ import { defineWorkspace } from '@bagelink/workspace'
55
55
  import type { WorkspaceConfig, WorkspaceEnvironment } from '@bagelink/workspace'
56
56
 
57
57
  const configs: Record<WorkspaceEnvironment, WorkspaceConfig> = {
58
- local: {
58
+ localhost: {
59
59
  host: 'http://localhost:8000',
60
60
  proxy: '/api',
61
61
  openapi_url: 'http://localhost:8000/openapi.json',
@@ -101,7 +101,7 @@ export default defineConfig(({ mode }) => {
101
101
  {
102
102
  "scripts": {
103
103
  "dev": "vite",
104
- "dev:local": "vite --mode local",
104
+ "dev:local": "vite --mode localhost",
105
105
  "build": "vite build"
106
106
  }
107
107
  }
@@ -125,7 +125,7 @@ writeNetlifyConfig(config, './netlify.toml')
125
125
  import { defineWorkspace } from '@bagelink/workspace'
126
126
 
127
127
  export default defineWorkspace({
128
- local: {
128
+ localhost: {
129
129
  host: 'http://localhost:8000',
130
130
  proxy: '/api',
131
131
  },
@@ -147,7 +147,7 @@ import { defineWorkspace } from '@bagelink/workspace'
147
147
  import rootWorkspace from '../../bgl.config'
148
148
 
149
149
  export default defineWorkspace({
150
- local: rootWorkspace('local'),
150
+ localhost: rootWorkspace('localhost'),
151
151
  development: rootWorkspace('development'),
152
152
  production: {
153
153
  ...rootWorkspace('production'),
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 init = require('../shared/workspace.Cky2E7hz.cjs');
5
+ const init = require('../shared/workspace.CkP5t0--.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 { g as generateWorkspaceConfig } from '../shared/workspace.xXRAUM-U.mjs';
3
+ import { g as generateWorkspaceConfig } from '../shared/workspace.BaaKkm9b.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 init = require('./shared/workspace.Cky2E7hz.cjs');
6
+ const init = require('./shared/workspace.CkP5t0--.cjs');
7
7
  require('prompts');
8
8
 
9
9
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- type WorkspaceEnvironment = 'local' | 'development' | 'production';
1
+ type WorkspaceEnvironment = 'localhost' | 'development' | 'production';
2
2
  interface WorkspaceConfig {
3
3
  /**
4
4
  * The host URL of the backend API server
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- type WorkspaceEnvironment = 'local' | 'development' | 'production';
1
+ type WorkspaceEnvironment = 'localhost' | 'development' | 'production';
2
2
  interface WorkspaceConfig {
3
3
  /**
4
4
  * The host URL of the backend API server
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- type WorkspaceEnvironment = 'local' | 'development' | 'production';
1
+ type WorkspaceEnvironment = 'localhost' | 'development' | 'production';
2
2
  interface WorkspaceConfig {
3
3
  /**
4
4
  * The host URL of the backend API server
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { existsSync, writeFileSync } from 'node:fs';
2
2
  import { resolve, join } from 'node:path';
3
3
  import process from 'node:process';
4
- import { g as generateWorkspaceConfig } from './shared/workspace.xXRAUM-U.mjs';
5
- export { a as generateWorkspaceConfigSync } from './shared/workspace.xXRAUM-U.mjs';
4
+ import { g as generateWorkspaceConfig } from './shared/workspace.BaaKkm9b.mjs';
5
+ export { a as generateWorkspaceConfigSync } from './shared/workspace.BaaKkm9b.mjs';
6
6
  import 'prompts';
7
7
 
8
8
  async function resolveConfig(mode = "development", options = {}) {
@@ -35,7 +35,7 @@ async function generateWorkspaceConfig(root = process.cwd(), configFile = "bgl.c
35
35
  import type { WorkspaceConfig, WorkspaceEnvironment } from '@bagelink/workspace'
36
36
 
37
37
  const configs: Record<WorkspaceEnvironment, WorkspaceConfig> = {
38
- local: {
38
+ localhost: {
39
39
  host: 'http://localhost:8000',
40
40
  proxy: '/api',
41
41
  openapi_url: 'http://localhost:8000/openapi.json',
@@ -89,7 +89,7 @@ function generateWorkspaceConfigSync(projectId, root = process.cwd(), configFile
89
89
  import type { WorkspaceConfig, WorkspaceEnvironment } from '@bagelink/workspace'
90
90
 
91
91
  const configs: Record<WorkspaceEnvironment, WorkspaceConfig> = {
92
- local: {
92
+ localhost: {
93
93
  host: 'http://localhost:8000',
94
94
  proxy: '/api',
95
95
  openapi_url: 'http://localhost:8000/openapi.json',
@@ -125,7 +125,7 @@ function updatePackageJsonScripts(root) {
125
125
  }
126
126
  const scriptsToAdd = {
127
127
  "dev": "vite",
128
- "dev:local": "vite --mode local",
128
+ "dev:local": "vite --mode localhost",
129
129
  "build": "vite build",
130
130
  "preview": "vite preview"
131
131
  };
@@ -166,7 +166,7 @@ import workspace from './bgl.config'
166
166
 
167
167
  // https://vitejs.dev/config/
168
168
  export default defineConfig(({ mode }) => {
169
- const config = workspace(mode as 'local' | 'development' | 'production')
169
+ const config = workspace(mode as 'localhost' | 'development' | 'production')
170
170
 
171
171
  return {
172
172
  server: {
@@ -42,7 +42,7 @@ async function generateWorkspaceConfig(root = process__default.cwd(), configFile
42
42
  import type { WorkspaceConfig, WorkspaceEnvironment } from '@bagelink/workspace'
43
43
 
44
44
  const configs: Record<WorkspaceEnvironment, WorkspaceConfig> = {
45
- local: {
45
+ localhost: {
46
46
  host: 'http://localhost:8000',
47
47
  proxy: '/api',
48
48
  openapi_url: 'http://localhost:8000/openapi.json',
@@ -96,7 +96,7 @@ function generateWorkspaceConfigSync(projectId, root = process__default.cwd(), c
96
96
  import type { WorkspaceConfig, WorkspaceEnvironment } from '@bagelink/workspace'
97
97
 
98
98
  const configs: Record<WorkspaceEnvironment, WorkspaceConfig> = {
99
- local: {
99
+ localhost: {
100
100
  host: 'http://localhost:8000',
101
101
  proxy: '/api',
102
102
  openapi_url: 'http://localhost:8000/openapi.json',
@@ -132,7 +132,7 @@ function updatePackageJsonScripts(root) {
132
132
  }
133
133
  const scriptsToAdd = {
134
134
  "dev": "vite",
135
- "dev:local": "vite --mode local",
135
+ "dev:local": "vite --mode localhost",
136
136
  "build": "vite build",
137
137
  "preview": "vite preview"
138
138
  };
@@ -173,7 +173,7 @@ import workspace from './bgl.config'
173
173
 
174
174
  // https://vitejs.dev/config/
175
175
  export default defineConfig(({ mode }) => {
176
- const config = workspace(mode as 'local' | 'development' | 'production')
176
+ const config = workspace(mode as 'localhost' | 'development' | 'production')
177
177
 
178
178
  return {
179
179
  server: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/workspace",
3
3
  "type": "module",
4
- "version": "1.7.2",
4
+ "version": "1.7.3",
5
5
  "description": "Monorepo workspace tooling for Bagel projects with proxy and config management",
6
6
  "author": {
7
7
  "name": "Bagel Studio",
package/src/init.ts CHANGED
@@ -48,7 +48,7 @@ export async function generateWorkspaceConfig(
48
48
  import type { WorkspaceConfig, WorkspaceEnvironment } from '@bagelink/workspace'
49
49
 
50
50
  const configs: Record<WorkspaceEnvironment, WorkspaceConfig> = {
51
- local: {
51
+ localhost: {
52
52
  host: 'http://localhost:8000',
53
53
  proxy: '/api',
54
54
  openapi_url: 'http://localhost:8000/openapi.json',
@@ -117,7 +117,7 @@ export function generateWorkspaceConfigSync(
117
117
  import type { WorkspaceConfig, WorkspaceEnvironment } from '@bagelink/workspace'
118
118
 
119
119
  const configs: Record<WorkspaceEnvironment, WorkspaceConfig> = {
120
- local: {
120
+ localhost: {
121
121
  host: 'http://localhost:8000',
122
122
  proxy: '/api',
123
123
  openapi_url: 'http://localhost:8000/openapi.json',
@@ -163,7 +163,7 @@ function updatePackageJsonScripts(root: string): void {
163
163
  // Add scripts if they don't exist
164
164
  const scriptsToAdd = {
165
165
  'dev': 'vite',
166
- 'dev:local': 'vite --mode local',
166
+ 'dev:local': 'vite --mode localhost',
167
167
  'build': 'vite build',
168
168
  'preview': 'vite preview',
169
169
  }
@@ -218,7 +218,7 @@ import workspace from './bgl.config'
218
218
 
219
219
  // https://vitejs.dev/config/
220
220
  export default defineConfig(({ mode }) => {
221
- const config = workspace(mode as 'local' | 'development' | 'production')
221
+ const config = workspace(mode as 'localhost' | 'development' | 'production')
222
222
 
223
223
  return {
224
224
  server: {
package/src/types.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type WorkspaceEnvironment = 'local' | 'development' | 'production'
1
+ export type WorkspaceEnvironment = 'localhost' | 'development' | 'production'
2
2
 
3
3
  export interface WorkspaceConfig {
4
4
  /**