Skip to content
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

Make $ deno doc --html read/resolve .js imports from .ts files if .js files dont exist #389

Open
izelnakri opened this issue Nov 4, 2023 · 0 comments

Comments

@izelnakri
Copy link

Currently I have one npm package where I declare .ts internal file imports as .js due to a sad compatibility benefit I get here: https://github.com/izelnakri/memoria/blob/main/packages/%40memoria/model/src/index.ts#L1

When I compile this project with tsc tsc can resolve and compile dependencies to a .js project distribution when project path is given. However I miss this feature currently given how new $ deno doc --html is, I think the command should resolve the .js files from .ts if .js doesnt exist because it seems this is what typescript team suggests and kind of implements internally.

Steps to reproduce

This should pass:

deno doc --html --name="@memoria/model" ./index.js
@izelnakri izelnakri changed the title Make $ deno doc --html read/resolve .js imports as .ts file if .js doesnt exist Make $ deno doc --html read/resolve .js imports from .ts files if .js files dont exist Nov 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant