Skip to content

Commit

Permalink
consider review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
amorscher committed Dec 4, 2022
1 parent 0e780bb commit 7721f65
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/project/index.js
Expand Up @@ -66,7 +66,6 @@ class Project {
// No need to distinguish between missing and empty,
// saves a lot of noisy guards elsewhere
config: {},
isEmpty: true,
// path.resolve(".", ...) starts from process.cwd()
filepath: path.resolve(cwd || ".", "lerna.json"),
};
Expand Down Expand Up @@ -97,7 +96,7 @@ class Project {

/** @type {ProjectConfig} */
this.config = loaded.config;
this.configNotFound = loaded.isEmpty;
this.configNotFound = Object.keys(loaded.config ?? {}).length === 0;
this.rootConfigLocation = loaded.filepath;
this.rootPath = path.dirname(loaded.filepath);

Expand Down

0 comments on commit 7721f65

Please sign in to comment.