Skip to content

Commit 4a0d89f

Browse files
committed
refactor(lock): use @socketsecurity/lib/process-lock directly
Remove unnecessary re-export wrapper and import processLock directly from @socketsecurity/lib/process-lock. This simplifies the codebase and avoids indirection.
1 parent ab0b663 commit 4a0d89f

File tree

2 files changed

+1
-208
lines changed

2 files changed

+1
-208
lines changed

packages/cli/src/utils/process/lock.mts

Lines changed: 0 additions & 207 deletions
This file was deleted.

packages/cli/src/utils/update/store.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ import path from 'node:path'
3737

3838
import { readFileUtf8Sync } from '@socketsecurity/lib/fs'
3939
import { logger } from '@socketsecurity/lib/logger'
40+
import { processLock } from '@socketsecurity/lib/process-lock'
4041

4142
import {
4243
UPDATE_STORE_DIR,
4344
UPDATE_STORE_FILE_NAME,
4445
} from '../../constants/paths.mts'
45-
import { processLock } from '../process/lock.mts'
4646

4747
interface StoreRecord {
4848
timestampFetch: number

0 commit comments

Comments
 (0)