Skip to content

Commit c572918

Browse files
committed
update deps, add @jbrowse/quick-lru, pin eslint to v9
Add explicit Promise<Stats> return type to LocalFile.stat() so the generated .d.ts references the duck-typed Stats interface from filehandle.ts instead of import("fs").Stats. This means consumers no longer need @types/node to type-check against this package. Also add rootDir to tsconfig (required by TS6) and pass --moduleResolution bundler to the CJS build to match the pattern used in other packages in this org.
1 parent 91c3a1c commit c572918

File tree

4 files changed

+112
-223
lines changed

4 files changed

+112
-223
lines changed

package.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"format": "prettier --write .",
3838
"prebuild": "yarn clean",
3939
"build:esm": "tsc --outDir esm",
40-
"build:es5": "tsc --module commonjs --outDir dist",
40+
"build:es5": "tsc --module commonjs --moduleResolution bundler --outDir dist",
4141
"build": "yarn build:esm && yarn build:es5",
4242
"postbuild:es5": "echo '{\"type\": \"commonjs\"}' > dist/package.json",
4343
"preversion": "yarn lint && yarn test --run && yarn build",
@@ -53,19 +53,22 @@
5353
"@eslint/js": "^10.0.1",
5454
"@types/node": "^25.5.0",
5555
"@types/range-parser": "^1.2.7",
56-
"@vitest/coverage-v8": "^4.0.15",
57-
"eslint": "^9.16.0",
58-
"eslint-plugin-import": "^2.31.0",
56+
"@vitest/coverage-v8": "^4.1.2",
57+
"eslint": "^9.39.4",
58+
"eslint-plugin-import": "^2.32.0",
5959
"eslint-plugin-unicorn": "^64.0.0",
60-
"prettier": "^3.4.1",
60+
"prettier": "^3.8.1",
6161
"range-parser": "^1.2.1",
62-
"rimraf": "^6.0.0",
62+
"rimraf": "^6.1.3",
6363
"standard-changelog": "^7.0.1",
6464
"typescript": "^6.0.2",
65-
"typescript-eslint": "^8.18.0",
66-
"vitest": "^4.0.15"
65+
"typescript-eslint": "^8.57.2",
66+
"vitest": "^4.1.2"
6767
},
6868
"publishConfig": {
6969
"access": "public"
70+
},
71+
"dependencies": {
72+
"@jbrowse/quick-lru": "^7.3.5"
7073
}
7174
}

0 commit comments

Comments
 (0)