mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-06 15:07:27 -04:00
fix: a warning should be printed when the store is locked
ref pnpm/pnpm#946
This commit is contained in:
@@ -45,6 +45,7 @@ export default async function (
|
||||
? await lock(initOpts.store, {
|
||||
locks: initOpts.locks,
|
||||
stale: initOpts.lockStaleDuration || 60 * 1000, // 1 minute,
|
||||
whenLocked: () => storeLogger.warn(`waiting for the store at "${initOpts.store}" to be unlocked...`),
|
||||
})
|
||||
: () => Promise.resolve(undefined)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user