From 47dd5cd17864deff4528d18459b80a3b75fe51fd Mon Sep 17 00:00:00 2001 From: ivanThePleasant Date: Mon, 28 Mar 2022 20:58:08 +0300 Subject: [PATCH] Corrected if clause mistake --- packages/core/strapi/lib/commands/opt-out-telemetry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/strapi/lib/commands/opt-out-telemetry.js b/packages/core/strapi/lib/commands/opt-out-telemetry.js index 2e8b906eb9..6fa60ea454 100644 --- a/packages/core/strapi/lib/commands/opt-out-telemetry.js +++ b/packages/core/strapi/lib/commands/opt-out-telemetry.js @@ -46,7 +46,7 @@ module.exports = async function optOutTelemetry() { const packageJSONPath = resolve(process.cwd(), 'package.json'); const exists = await fse.pathExists(packageJSONPath); - if (exists) { + if (!exists) { console.log(`${chalk.yellow('Warning')}: could not find package.json`); process.exit(0); }