Skip to content

Commit

Permalink
fix: if package name is missing, warn the user
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Feb 16, 2020
1 parent 2a9ab7d commit 72bf552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/adio.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ try {
}

packagesWithErrors.forEach((pckg, index) => {
console.log(chalk.red(`${index + 1}. ${pckg.packageJson.name} (${pckg.dir})`));
console.log(chalk.red(`${index + 1}. ${pckg.packageJson.name || "🚨Package name missing."} (${pckg.dir})`));

if (pckg.errors.deps.src.length) {
console.log(chalk.cyan("Packages used in source code, but not listed in package.json:"));
Expand Down

0 comments on commit 72bf552

Please sign in to comment.