Skip to content

Commit 5361c33

Browse files
committed
💥 add exports field to package.json
and tweak supported node versions.
1 parent fd5354f commit 5361c33

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

‎package.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,21 @@
33
"version": "2.1.0",
44
"description": "Utilities for ESLint plugins.",
55
"engines": {
6-
"node": ">=10"
6+
"node": "^10.0.0 || ^12.0.0 || >= 14.0.0"
77
},
88
"sideEffects": false,
99
"main": "index",
1010
"module": "index.mjs",
1111
"files": [
1212
"index.*"
1313
],
14+
"exports": {
15+
".": {
16+
"import": "./index.mjs",
17+
"require": "./index.js"
18+
},
19+
"./package.json": "./package.json"
20+
},
1421
"dependencies": {
1522
"eslint-visitor-keys": "^2.0.0"
1623
},

0 commit comments

Comments
 (0)