-
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
[feature request] Support extending Deno configs #18132
Comments
Melodramatically, are we really at the point where deno configuration is so necessary and burdensome that |
I hope most projects never need it. This feature is useful for polyrepos and large projects that have multiple subprojects each with their own deno.json files. I think this will be common enough (but I'm interested to see polyrepo counterexamples that wouldn't use it). The shared configuration itself is wanted for Deno as much as TypeScript itself ( |
There are 2 aspects to this:
The second one is the biggest problem as it prevents mono-repos for deno to exist at all. Only 1 deno.json is in control of the LSP |
This would be particularly useful for the |
Ah, so only the root I am working on a project where a I was also looking into doing a shared compile options |
Deno now supports workspaces. The |
I've now spent two evenings trying to get workspaces to work with Fresh, so I can have Fresh in a separate folder to the rest of my old codebase, and hopefully have separate imports for them. But, I just get errors from Fresh, it feels like it cannot exist as a workspace 😅 Oh the frustration! Guess I could post an issue on the Fresh repo. |
I'm investigating if it's feasible to move a pnpm node monorepo to Deno, and every project (many of them) has their own tsconfig.json that extends from a shared one. Mostly the configuration is the same, but sometimes it inherits from a separate shared tsconfig file for testing projects. Since it's a large monorepo, we need to be able to adopt Deno incrementally. |
This is a feature request to add an
extends
-like option to deno.json like tsconfig.json has. Eg, consider a shared common config, deno-base.json:The common config could be mixed into a specific usage to avoid repeating all the common settings:
Example use case
I have multi-Deno config project where each project has its own deno.json:
Each config has a lot of overlap and I think I could share some of it if a TypeScript-like
extends
option was supported.I feel it's hard to share the config well but maybe a good start would be deep merging
compilerOptions
,fmt.options
,lint.rules
, andlock
.References
Some loosely related references:
files
deno.json config to replacefmt.files
+lint.files
+test.files
#15300deno.config
in a multi-root workspace vscode_deno#501The text was updated successfully, but these errors were encountered: