Skip to content

Commit 429f518

Browse files
workspace-lock command line fixes
1 parent 73e868a commit 429f518

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,14 @@ npm run lock-workspace --workspace=backend unlock "My Workspace"
212212
npm run lock-workspace --workspace=backend show
213213
```
214214

215+
**In Docker:** Run commands directly without the workspace flag (the container only has the backend):
216+
217+
```bash
218+
npm run lock-workspace list
219+
# or
220+
node dist/cli/lock-workspace.js list
221+
```
222+
215223
## Testing
216224

217225
```bash

backend/src/cli/lock-workspace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import { existsSync, readFileSync, writeFileSync } from 'fs';
1313
import { join } from 'path';
1414
import initSqlJs from 'sql.js';
1515

16-
const CONFIG_FILE = join(process.cwd(), 'locked-workspaces.json');
1716
const DATA_DIR = join(process.cwd(), 'data');
17+
const CONFIG_FILE = join(DATA_DIR, 'locked-workspaces.json');
1818
const MASTER_DB_PATH = join(DATA_DIR, '_master.db');
1919

2020
interface LockedWorkspacesConfig {

backend/src/services/locked-workspaces.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { existsSync, readFileSync, watchFile } from 'fs';
22
import { join } from 'path';
33

4-
const CONFIG_FILE = join(process.cwd(), 'locked-workspaces.json');
4+
const DATA_DIR = join(process.cwd(), 'data');
5+
const CONFIG_FILE = join(DATA_DIR, 'locked-workspaces.json');
56

67
interface LockedWorkspacesConfig {
78
// Can specify by workspace ID (UUID) or name

0 commit comments

Comments
 (0)