-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Provide an easier way to configure type checking for other runtimes #24947
Comments
I think I can pick this up. |
@bartlomieju created a pull request denoland/deno_config#130. |
What happens in the event that both runtime and lib properties are provided? |
Most likely a warning or an error. |
Warning makes sense when |
I think merging with unique values would do the work, why do we even care about conflict? |
Discussed with the team, if both options provided it should be a hard error. |
I have some questions about this issue that I hope are not too out of scope:
|
Currently there's no plan to use this for defining package compatiblity in JSR. I think that idea would be better discussed in JSR repository https://github.com/jsr-io/jsr/issues |
Currently it's difficult to configure Deno type checking to make it work with browsers.
If you like to write code which works with browsers instead of Deno, you need to configure
deno.json
into something like the below:This requires a lot of knowledge about
tsconfig.json
, and this situation seems against our zero-config/easier TypeScript principle.I'd suggest we should have
runtime
field indeno.json
, which accepts a list of"deno" | "browser"
(for now), and that fields configures the type checking automatically for each given runtime.For SSR situation:
The text was updated successfully, but these errors were encountered: