feat: log auto-discovered config file and support configFile: false - #507
Merged
dsherret merged 2 commits intoJul 26, 2026
Merged
Conversation
The deno.json is auto-discovered by searching upwards from the entry points, but there was no indication of which config file was used, so log it: ``` [dnt] Auto-discovered config file: /home/david/dev/my_project/deno.json ``` Additionally, allow opting out of the auto-discovery by specifying `configFile: false`. Claude-Session: https://claude.ai/code/session_01SqfDuWeEek5XnHSbXxCUE9
- document that `configFile: false` also disables discovering a package.json and deno.lock - clarify when no config file is reported - restore the jsr specifier mapping coverage for import maps, which `set_config_file` in the test builder was incorrectly providing Claude-Session: https://claude.ai/code/session_01SqfDuWeEek5XnHSbXxCUE9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #399
The deno.json has been auto-discovered since 0.42 (#462), but there was no indication of which config file a build ended up using. Now it's logged:
Additionally,
configFileacceptsfalseto opt out of the discovery entirely:Details:
configFile: falsemaps toConfigDiscoveryOption::Disabled, which also stops a package.json and deno.lock from being discovered. That's documented on the option and in the readme.configFileis now run throughvalueToUrllikeimportMapalready was, so a plain path works instead of erroring while deserializing the specifier.set_config_filein the rust test builder, which was setting the import map instead of the config file. The one test relying on it is renamed to match what it covers and a sibling test was added for the import map path.