Skip to content

Commit f842b12

Browse files
authored
fix: consider lockfiles from the future to be stale (#371)
1 parent 3fd6f98 commit f842b12

File tree

4 files changed

+28
-25
lines changed

4 files changed

+28
-25
lines changed

package-lock.json

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@
5757
"vitest": "^0.22.1"
5858
},
5959
"dependencies": {
60+
"@alcalzone/proper-lockfile": "^4.1.3-0",
6061
"alcalzone-shared": "^4.0.3",
61-
"fs-extra": "^10.1.0",
62-
"proper-lockfile": "^4.1.2"
62+
"fs-extra": "^10.1.0"
6363
},
6464
"overrides": {
6565
"[email protected]": "^1.2.6"

src/@types/proper-lockfile.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
declare module "@alcalzone/proper-lockfile" {
2+
export * from "@types/proper-lockfile";
3+
}

src/lib/db.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import * as lockfile from "@alcalzone/proper-lockfile";
12
import { wait } from "alcalzone-shared/async";
23
import {
34
createDeferredPromise,
@@ -6,7 +7,6 @@ import {
67
import { composeObject } from "alcalzone-shared/objects";
78
import * as fs from "fs-extra";
89
import * as path from "path";
9-
import * as lockfile from "proper-lockfile";
1010
import * as readline from "readline";
1111

1212
export interface JsonlDBOptions<V> {

0 commit comments

Comments
 (0)