fix(nodejs): avoid deno project files (#7478)

* detect deno project files

* deno.jsonl to deno.jsonc

* typo in docs
This commit is contained in:
Nico Mayer
2026-05-23 15:30:39 +02:00
committed by GitHub
parent 05ee20141e
commit 96c1f90eeb
3 changed files with 12 additions and 3 deletions
+8 -2
View File
@@ -1209,7 +1209,10 @@
".nvmrc",
"!bunfig.toml",
"!bun.lock",
"!bun.lockb"
"!bun.lockb",
"!deno.json",
"!deno.jsonc",
"!deno.lock"
],
"detect_folders": [
"node_modules"
@@ -5199,7 +5202,10 @@
".nvmrc",
"!bunfig.toml",
"!bun.lock",
"!bun.lockb"
"!bun.lockb",
"!deno.json",
"!deno.jsonc",
"!deno.lock"
]
},
"detect_folders": {
+1 -1
View File
@@ -3379,7 +3379,7 @@ By default the module will be shown if any of the following conditions are met:
- The current directory contains a file with the `.js`, `.mjs` or `.cjs` extension
- The current directory contains a file with the `.ts`, `.mts` or `.cts` extension
Additionally, the module will be hidden by default if the directory contains a `bunfig.toml`, `bun.lock`, or `bun.lockb` file, overriding the above conditions.
Additionally, the module will be hidden by default if the directory contains a `deno.json`, `deno.jsonc`, `deno.lock`, `bunfig.toml`, `bun.lock`, or `bun.lockb` file, overriding the above conditions.
### Options
+3
View File
@@ -36,6 +36,9 @@ impl Default for NodejsConfig<'_> {
"!bunfig.toml",
"!bun.lock",
"!bun.lockb",
"!deno.json",
"!deno.jsonc",
"!deno.lock",
],
detect_folders: vec!["node_modules"],
}