mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-26 11:02:01 -04:00
fix(lock): increase stale duration from 10s to 20s
This commit is contained in:
@@ -10,7 +10,7 @@ async function lock(lockFilename: string, firstTime: boolean): Promise<{}> {
|
||||
const promise = new Promise((resolve, reject) => {
|
||||
lockfile.lock(
|
||||
lockFilename,
|
||||
{realpath: false},
|
||||
{realpath: false, stale: 20 * 1000},
|
||||
async (err: Error & {code: string}) => {
|
||||
if (err && err.code === 'ELOCKED') {
|
||||
if (firstTime) {
|
||||
|
||||
Reference in New Issue
Block a user