Skip to content

Commit 0b69f52

Browse files
authored
[BUGFIX] Use correct paths for CJS and ESM compatibility (#15)
* Use correct paths for CJS and ESM compatibility Fixes #12 Introduced in feb90a4 * Downgrade mocha to fix Node 6 tests
1 parent 8e51d62 commit 0b69f52

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
"name": "is-promise",
33
"version": "2.2.0",
44
"description": "Test whether an object looks like a promises-a+ promise",
5-
"main": "index.js",
6-
"type": "module",
5+
"main": "./index.js",
76
"exports": {
8-
"import": "index.mjs",
9-
"require": "index.js"
7+
"import": "./index.mjs",
8+
"require": "./index.js"
109
},
1110
"scripts": {
1211
"test": "mocha -R spec"
1312
},
1413
"files": [
15-
"index.js"
14+
"index.js",
15+
"index.mjs"
1616
],
1717
"repository": {
1818
"type": "git",
@@ -22,6 +22,6 @@
2222
"license": "MIT",
2323
"devDependencies": {
2424
"better-assert": "^1.0.2",
25-
"mocha": "^7.1.1"
25+
"mocha": "~1.7.4"
2626
}
27-
}
27+
}

0 commit comments

Comments
 (0)