Corrected if clause mistake

This commit is contained in:
ivanThePleasant 2022-03-28 20:58:08 +03:00
parent 613a7c19fe
commit 47dd5cd178

View File

@ -46,7 +46,7 @@ module.exports = async function optOutTelemetry() {
const packageJSONPath = resolve(process.cwd(), 'package.json'); const packageJSONPath = resolve(process.cwd(), 'package.json');
const exists = await fse.pathExists(packageJSONPath); const exists = await fse.pathExists(packageJSONPath);
if (exists) { if (!exists) {
console.log(`${chalk.yellow('Warning')}: could not find package.json`); console.log(`${chalk.yellow('Warning')}: could not find package.json`);
process.exit(0); process.exit(0);
} }