-
Notifications
You must be signed in to change notification settings - Fork 8
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
Programmatic use not working #87
Comments
Hi, Could you show some code of how you're importing? Thanks, |
the issue is steps to repro mkdir test
cd test
npm init --yes
npm i boats
node -p 'require("boats")' |
although that won't fix it anyway - it looks like the index exports the You would have to do something like |
Dang! I'm pretty slammed at the moment so not sure i have the time until next month... PR would be very welcomed :) |
@Papooch I've decided as I don't have time to work on this feature to instead remove programmatic use. If you would like to expose boats in a programmatic way a PR would be welcomed. The section of boats to expose would be: Ideally, the cli.ts file would call a new function or class named "boats" and the package.json would both export the types and the said file. I would imagine something like added to the package json file:
For now though, there is no longer an export and I will close this PR. |
Describe the bug
When trying to import
boats
programmatically, I get the following error:To Reproduce
include
import boats from 'boats'
(or the CJS equivalent) in a source file and run it.Expected behavior
As per the docs
I would expect this to work and provide some programmatic API.
The text was updated successfully, but these errors were encountered: