From fa2221a1a179726df775824ff40faa98f8cbe83d Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Thu, 23 Nov 2023 11:49:34 +0300 Subject: [PATCH] Detect bun.lockb file --- src/cli/cmd/init/handlers/javascript.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/cmd/init/handlers/javascript.rs b/src/cli/cmd/init/handlers/javascript.rs index da6ee79d..061b6a6a 100644 --- a/src/cli/cmd/init/handlers/javascript.rs +++ b/src/cli/cmd/init/handlers/javascript.rs @@ -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?", )