Skip to content

Commit bab3a10

Browse files
committed
[utils] [meta] add exports, main
In theory this should only be breaking if someone is requiring tsconfig.json
1 parent c387276 commit bab3a10

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

utils/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
77

88
### Changed
99
- [types] use shared config (thanks [@ljharb])
10+
- [meta] add `exports`, `main`
1011

1112
### Fixed
1213
- `parse`: also delete `parserOptions.projectService` ([#3039], thanks [@Mysak0CZ])

utils/package.json

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,46 @@
55
"engines": {
66
"node": ">=4"
77
},
8+
"main": false,
9+
"exports": {
10+
"./ModuleCache": "./ModuleCache.js",
11+
"./ModuleCache.js": "./ModuleCache.js",
12+
"./declaredScope": "./declaredScope.js",
13+
"./declaredScope.js": "./declaredScope.js",
14+
"./hash": "./hash.js",
15+
"./hash.js": "./hash.js",
16+
"./ignore": "./ignore.js",
17+
"./ignore.js": "./ignore.js",
18+
"./module-require": "./module-require.js",
19+
"./module-require.js": "./module-require.js",
20+
"./moduleVisitor": "./moduleVisitor.js",
21+
"./moduleVisitor.js": "./moduleVisitor.js",
22+
"./parse": "./parse.js",
23+
"./parse.js": "./parse.js",
24+
"./pkgDir": "./pkgDir.js",
25+
"./pkgDir.js": "./pkgDir.js",
26+
"./pkgUp": "./pkgUp.js",
27+
"./pkgUp.js": "./pkgUp.js",
28+
"./readPkgUp": "./readPkgUp.js",
29+
"./readPkgUp.js": "./readPkgUp.js",
30+
"./resolve": "./resolve.js",
31+
"./resolve.js": "./resolve.js",
32+
"./unambiguous": "./unambiguous.js",
33+
"./unambiguous.js": "./unambiguous.js",
34+
"./visit": "./visit.js",
35+
"./visit.js": "./visit.js",
36+
"./package.json": "./package.json"
37+
},
838
"scripts": {
939
"prepublishOnly": "cp ../{LICENSE,.npmrc} ./",
1040
"tsc": "tsc -p .",
41+
"posttsc": "attw -P .",
1142
"test": "echo \"Error: no test specified\" && exit 1"
1243
},
1344
"repository": {
1445
"type": "git",
1546
"url": "git+https://github.com/import-js/eslint-plugin-import.git",
16-
"directory": "utils"
47+
"directory": "utils"
1748
},
1849
"keywords": [
1950
"eslint-plugin-import",
@@ -31,6 +62,7 @@
3162
"debug": "^3.2.7"
3263
},
3364
"devDependencies": {
65+
"@arethetypeswrong/cli": "^0.15.4",
3466
"@ljharb/tsconfig": "^0.2.0",
3567
"@types/debug": "^4.1.12",
3668
"@types/eslint": "^8.56.3",

0 commit comments

Comments
 (0)