From bbe0489af4bf246fdf61e6b9be1fca1267bca854 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Wed, 14 Sep 2022 11:11:20 +0100 Subject: [PATCH] Adding better controls for .git checking. --- packages/cli/src/plugins/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/plugins/index.js b/packages/cli/src/plugins/index.js index 7525e9d2b1..d184c6e70a 100644 --- a/packages/cli/src/plugins/index.js +++ b/packages/cli/src/plugins/index.js @@ -25,7 +25,7 @@ function checkInPlugin() { async function askAboutTopLevel(name) { const files = fs.readdirSync(process.cwd()) // we are in an empty git repo, don't ask - if (files.length === 1 && files[0] === ".git") { + if (files.find(file => file === ".git")) { return false } else { console.log(