-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use ES modules #23
use ES modules #23
Conversation
@@ -2,4 +2,3 @@ repo-owner = sanctuary-js | |||
repo-name = sanctuary-show | |||
contributing-file = .github/CONTRIBUTING.md | |||
heading-level = 3 | |||
module-type = commonjs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
module-type
defaults to esm
as of sanctuary-js/sanctuary-scripts#56.
"exports": { | ||
".": "./index.js", | ||
"./package.json": "./package.json" | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://nodejs.org/api/packages.html#package-entry-points
I want to continue to support importing from sanctuary-show/package.json
as I consider this part of the public API.
|
||
const assert = require ('assert'); | ||
import show from 'sanctuary-show'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c3a0bd3
to
e736c23
Compare
sanctuary-js/sanctuary#726