Skip to content

Commit 342351f

Browse files
committed
[meta] add exports field
If this turns out to be breaking, it means someone is using `require('is-date-object/index')` or requiring the test file, so that seems unlikely
1 parent 4f1d9b3 commit 342351f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: package.json

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
"description": "Is this value a JS Date object? This module works cross-realm/iframe, and despite ES6 @@toStringTag.",
99
"license": "MIT",
1010
"main": "index.js",
11+
"exports": {
12+
".": "./index.js",
13+
"./package.json": "./package.json"
14+
},
1115
"sideEffects": false,
1216
"scripts": {
1317
"prepack": "npmignore --auto --commentLines=autogenerated",

0 commit comments

Comments
 (0)