Skip to content
Permalink
Browse files
[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
  • Loading branch information
RyanZim committed Apr 25, 2020
1 parent 8e51d62 commit 0b69f52ee73c9f6ad4480f02c9bccb14d2038656
Showing 1 changed file with 7 additions and 7 deletions.
@@ -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",
@@ -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.