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

Exposing internal APIs in runtime. #16545

Closed
ssttevee opened this issue Nov 5, 2022 · 1 comment
Closed

Exposing internal APIs in runtime. #16545

ssttevee opened this issue Nov 5, 2022 · 1 comment

Comments

@ssttevee
Copy link

ssttevee commented Nov 5, 2022

Has there been any consideration into allowing access to some useful internals from js?

I'm thinking specifically:

Additionally, not what I'm looking for right now, but could be useful:

  • deno doc that outputs to memory
  • deno bundle that outputs to memory
  • deno compile that outputs to memory
  • deno info (would be useful for building a turborepo or nx clone)

format_file seems very straight forward and I can probably submit a pr within a day. Typescript seems very hard, considering that it seems to run in a completely different isolate. The others seems like it would be somewhere in between in due to serializations and writing accompanying type definitions.

This seems like it could be related to #1739, but also sounds different.

@dsherret
Copy link
Member

dsherret commented Nov 17, 2022

Seems like #10731, which I don't think we'll ever do. We used to have an unstable Deno.emit and we removed that in favour of https://github.com/denoland/deno_emit

I don't think we'll support these APIs for formatting and linting because we'd rather distribute them as libraries for people to use and for the APIs to evolve with the features rather than being set in stone as runtime APIs.

Edit: Also, there is #15478

@dsherret dsherret closed this as not planned Won't fix, can't repro, duplicate, stale Nov 17, 2022
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

2 participants