From 7b95b578e9f95a106c9fb06425ff95ed2f103e59 Mon Sep 17 00:00:00 2001 From: Ambros Morscher Date: Sun, 4 Dec 2022 21:38:52 +0100 Subject: [PATCH] consider review comments --- core/project/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/project/index.js b/core/project/index.js index a1e681405cd..9cdb3b3900d 100644 --- a/core/project/index.js +++ b/core/project/index.js @@ -66,7 +66,7 @@ class Project { // No need to distinguish between missing and empty, // saves a lot of noisy guards elsewhere config: {}, - isEmpty: true, + configNotFound:true, // path.resolve(".", ...) starts from process.cwd() filepath: path.resolve(cwd || ".", "lerna.json"), }; @@ -97,7 +97,7 @@ class Project { /** @type {ProjectConfig} */ this.config = loaded.config; - this.configNotFound = loaded.isEmpty; + this.configNotFound = loaded.configNotFound; this.rootConfigLocation = loaded.filepath; this.rootPath = path.dirname(loaded.filepath);