Skip to content

Commit

Permalink
Merge pull request #85 from DeterminateSystems/bun-lockb-detection
Browse files Browse the repository at this point in the history
Detect bun.lockb file
  • Loading branch information
lucperkins authored Nov 23, 2023
2 parents 189583c + fa2221a commit 968774e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/cmd/init/handlers/javascript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ impl Handler for JavaScript {
}

if project.has_file("package.json") && Prompt::for_language("JavaScript/TypeScript") {
if project.has_file("bunfig.toml")
if project.has_one_of(&["bunfig.toml", "bun.lockb"])
&& Prompt::bool(
"This seems to be a Bun project. Would you like to add it to your environment?",
)
Expand Down

0 comments on commit 968774e

Please sign in to comment.