-
Notifications
You must be signed in to change notification settings - Fork 131
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
d.ts files are getting ignored when entrypoint is a js file #370
Comments
In Deno, you have to explicitly link your In your case, you want to add a |
i believe error message/docs could be improved then. adding |
Yes - we'll improve the docs and error message. |
@lucacasonato I just ran into this as well. Would you consider adding a The reason is that this is a bit of a mess to implement for each package, as including the triple-slash directive before
I understand that Deno doesn't crawl around the directory looking for |
You can now specify |
Ooh thank you! I will give that a try. |
which leads to jsr resorting to trying to infer types trivially, and as a result - failure to use the library altogether.
mcve
deno.json
mod.js
mod.d.ts
expected result
jsr uses d.ts files for typings and doesn't try to infer them on its own
actual result
jsr warns about "slow types" when publishing and advises to add d.ts files (which are already there):
additional context
due to this bug,
export const ns
from the mcve, whose type can't be trivially inferred, results being unusable at all:The text was updated successfully, but these errors were encountered: