mirror of
https://github.com/starship/starship.git
synced 2026-06-24 02:01:36 +07:00
fix(nodejs): avoid deno project files (#7478)
* detect deno project files * deno.jsonl to deno.jsonc * typo in docs
This commit is contained in:
@@ -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": {
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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"],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user