mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
Corrected if clause mistake
This commit is contained in:
parent
613a7c19fe
commit
47dd5cd178
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user