Skip to content

Commit 11b7d04

Browse files
committed
fix: move from main to exports in package.json
BREAKING CHANGE: This module now defines an `exports` field in `package.json`. You will no longer be able to require individual files directly.
1 parent 98057a0 commit 11b7d04

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,16 @@
22
"name": "npm-install-checks",
33
"version": "6.3.0",
44
"description": "Check the engines and platform fields in package.json",
5-
"main": "lib/index.js",
5+
"main": "./lib/index.js",
6+
"exports": {
7+
".": [
8+
{
9+
"default": "./lib/index.js"
10+
},
11+
"./lib/index.js"
12+
]
13+
},
14+
"type": "commonjs",
615
"dependencies": {
716
"semver": "^7.1.1"
817
},

0 commit comments

Comments
 (0)