Skip to content

Commit

Permalink
[BUGFIX] Use correct paths for CJS and ESM compatibility (#15)
Browse files Browse the repository at this point in the history
* Use correct paths for CJS and ESM compatibility

Fixes #12

Introduced in feb90a4

* Downgrade mocha to fix Node 6 tests
  • Loading branch information
RyanZim authored Apr 25, 2020
1 parent 8e51d62 commit 0b69f52
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
"name": "is-promise",
"version": "2.2.0",
"description": "Test whether an object looks like a promises-a+ promise",
"main": "index.js",
"type": "module",
"main": "./index.js",
"exports": {
"import": "index.mjs",
"require": "index.js"
"import": "./index.mjs",
"require": "./index.js"
},
"scripts": {
"test": "mocha -R spec"
},
"files": [
"index.js"
"index.js",
"index.mjs"
],
"repository": {
"type": "git",
Expand All @@ -22,6 +22,6 @@
"license": "MIT",
"devDependencies": {
"better-assert": "^1.0.2",
"mocha": "^7.1.1"
"mocha": "~1.7.4"
}
}
}

0 comments on commit 0b69f52

Please sign in to comment.