Skip to content

Commit 00abb6f

Browse files
authored
fix: incorrect exports mapping (#172)
1 parent ad82ea3 commit 00abb6f

File tree

3 files changed

+289
-109
lines changed

3 files changed

+289
-109
lines changed

.changeset/calm-ties-search.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-import-resolver-typescript": patch
3+
---
4+
5+
fix: incorrect exports mapping

package.json

+10-8
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,24 @@
4141
},
4242
"funding": "https://opencollective.com/unts",
4343
"license": "ISC",
44-
"packageManager": "pnpm@7.9.0",
44+
"packageManager": "pnpm@7.9.3",
4545
"engines": {
4646
"node": "^12.20.0 || ^14.18.0 || >=16.0.0"
4747
},
4848
"main": "lib/index.cjs",
4949
"module": "lib/index.js",
5050
"exports": {
5151
".": {
52-
"require": "./lib/index.cjs",
52+
"types": "./lib/index.d.ts",
53+
"es2020": "./lib/index.es2020.mjs",
54+
"fesm2020": "./lib/index.es2020.mjs",
5355
"import": "./lib/index.js",
54-
"types": "./lib/index.d.ts"
56+
"require": "./lib/index.cjs"
5557
},
5658
"./package.json": "./package.json"
5759
},
58-
"es2015": "lib/index.js",
59-
"fesm2015": "lib/index.es2015.mjs",
60+
"es2020": "lib/index.es2020.mjs",
61+
"fesm2020": "lib/index.es2020.mjs",
6062
"types": "lib/index.d.ts",
6163
"files": [
6264
"lib",
@@ -71,7 +73,7 @@
7173
],
7274
"scripts": {
7375
"build": "run-p build:*",
74-
"build:r": "r -f cjs,es2015",
76+
"build:r": "r -f cjs,es2020",
7577
"build:ts": "tsc -b",
7678
"lint": "run-p lint:*",
7779
"lint:es": "eslint src --cache -f friendly",
@@ -103,15 +105,15 @@
103105
"synckit": "^0.8.3"
104106
},
105107
"devDependencies": {
106-
"@1stg/lib-config": "^10.0.0",
108+
"@1stg/lib-config": "^10.1.1",
107109
"@changesets/changelog-github": "^0.4.6",
108110
"@changesets/cli": "^2.24.3",
109111
"@mozilla/glean": "^1.1.0",
110112
"@types/debug": "^4.1.7",
111113
"@types/enhanced-resolve": "^3.0.7",
112114
"@types/is-core-module": "^2.2.0",
113115
"@types/is-glob": "^4.0.2",
114-
"@types/node": "^18.7.6",
116+
"@types/node": "^18.7.9",
115117
"@types/unist": "^2.0.6",
116118
"dummy.js": "link:dummy.js",
117119
"react": "^18.2.0",

0 commit comments

Comments
 (0)