Skip to content

Commit 6176063

Browse files
committed
feat: Add typesVersions for legacy moduleResolution support
1 parent 3b980f9 commit 6176063

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@ts-safeql/eslint-plugin": patch
3+
---
4+
5+
Add `typesVersions` to `package.json` to support projects using legacy `moduleResolution` settings (like `node` / `node10`) that do not support the `exports` field for subpath resolution.
6+

packages/eslint-plugin/package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111
"types": "dist/index.d.ts",
1212
"module": "dist/index.mjs",
1313
"main": "dist/index.cjs",
14+
"typesVersions": {
15+
"*": {
16+
"config": [
17+
"./dist/config.d.ts"
18+
]
19+
}
20+
},
1421
"exports": {
1522
".": {
1623
"types": {

0 commit comments

Comments
 (0)