-
-
Notifications
You must be signed in to change notification settings - Fork 305
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
Build script to setup ESM/CJS module exports #384
base: master
Are you sure you want to change the base?
Conversation
MultiselectPrompt, | ||
AutocompletePrompt, | ||
AutocompleteMultiselectPrompt, | ||
ConfirmPrompt |
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.
Would be better as named exports.
], | ||
"scripts": { | ||
"start": "node lib/index.js", | ||
"prebuild": "rm -rf dist", | ||
"build": "tsc -p ./tsconfig.cjs.json && tsconfig-to-dual-package ./tsconfig.cjs.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.
If you're interested, pkgroll offers this with zero-config.
How is this going? |
Yeah, same, would like to use it with native esm ;) |
Is there any temporary solution for now to utilize this in an ESM environment until support is added? I would prefer to avoid build steps or transpilation if possible on the consuming side. I tried to switch my script over to cjs, but then I lose top level awaits :( |
No description provided.