Skip to content

Commit e02a33f

Browse files
authored
Add main, module, and types fields to package.json for multiple packages, closes #1288, closes #1283 (#1294)
1 parent 75eb218 commit e02a33f

File tree

12 files changed

+36
-0
lines changed

12 files changed

+36
-0
lines changed

packages/core/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
},
2323
"./package.json": "./package.json"
2424
},
25+
"main": "./dist/index.js",
26+
"module": "./dist/index.js",
27+
"types": "./dist/index.d.ts",
2528
"files": [
2629
"dist",
2730
"./package.json"

packages/plugins/eslint-plugin-react-debug/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
},
3131
"./package.json": "./package.json"
3232
},
33+
"main": "./dist/index.js",
34+
"module": "./dist/index.js",
35+
"types": "./dist/index.d.ts",
3336
"files": [
3437
"dist",
3538
"./package.json"

packages/plugins/eslint-plugin-react-dom/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
},
3131
"./package.json": "./package.json"
3232
},
33+
"main": "./dist/index.js",
34+
"module": "./dist/index.js",
35+
"types": "./dist/index.d.ts",
3336
"files": [
3437
"dist",
3538
"./package.json"

packages/plugins/eslint-plugin-react-hooks-extra/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
},
3232
"./package.json": "./package.json"
3333
},
34+
"main": "./dist/index.js",
35+
"module": "./dist/index.js",
36+
"types": "./dist/index.d.ts",
3437
"files": [
3538
"dist",
3639
"./package.json"

packages/plugins/eslint-plugin-react-naming-convention/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
},
3131
"./package.json": "./package.json"
3232
},
33+
"main": "./dist/index.js",
34+
"module": "./dist/index.js",
35+
"types": "./dist/index.d.ts",
3336
"files": [
3437
"dist",
3538
"./package.json"

packages/plugins/eslint-plugin-react-web-api/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
},
3131
"./package.json": "./package.json"
3232
},
33+
"main": "./dist/index.js",
34+
"module": "./dist/index.js",
35+
"types": "./dist/index.d.ts",
3336
"files": [
3437
"dist",
3538
"./package.json"

packages/plugins/eslint-plugin-react-x/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
},
3030
"./package.json": "./package.json"
3131
},
32+
"main": "./dist/index.js",
33+
"module": "./dist/index.js",
34+
"types": "./dist/index.d.ts",
3235
"files": [
3336
"dist",
3437
"./package.json"

packages/plugins/eslint-plugin/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
},
3333
"./package.json": "./package.json"
3434
},
35+
"main": "./dist/index.js",
36+
"module": "./dist/index.js",
37+
"types": "./dist/index.d.ts",
3538
"files": [
3639
"dist",
3740
"./package.json"

packages/shared/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
},
2323
"./package.json": "./package.json"
2424
},
25+
"main": "./dist/index.js",
26+
"module": "./dist/index.js",
27+
"types": "./dist/index.d.ts",
2528
"files": [
2629
"dist",
2730
"./package.json"

packages/utilities/ast/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
},
2323
"./package.json": "./package.json"
2424
},
25+
"main": "./dist/index.js",
26+
"module": "./dist/index.js",
27+
"types": "./dist/index.d.ts",
2528
"files": [
2629
"dist",
2730
"./package.json"

0 commit comments

Comments
 (0)