From ad7b09e55a7a6d8ddd47c5afaf5e3615a6800528 Mon Sep 17 00:00:00 2001 From: Werner Robitza Date: Tue, 20 Jun 2023 22:49:22 +0200 Subject: [PATCH] improve messages related to new files and dependencies (#702) Co-authored-by: Sindre Sorhus --- source/ui.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/ui.js b/source/ui.js index 1e60e51d..6489ca31 100644 --- a/source/ui.js +++ b/source/ui.js @@ -94,15 +94,15 @@ const checkNewFilesAndDependencies = async (pkg, rootDir) => { const messages = []; if (newFiles.unpublished.length > 0) { - messages.push(`The following new files will not be part of your published package:\n${util.joinList(newFiles.unpublished)}`); + messages.push(`The following new files will not be part of your published package:\n${util.joinList(newFiles.unpublished)}\n\nIf you intended to publish them, add them to the \`files\` field in package.json.`); } if (newFiles.firstTime.length > 0) { - messages.push(`The following new files will be published for the first time:\n${util.joinList(newFiles.firstTime)}`); + messages.push(`The following new files will be published for the first time:\n${util.joinList(newFiles.firstTime)}\n\nPlease make sure only the intended files are listed.`); } if (newDependencies.length > 0) { - messages.push(`The following new dependencies will be part of your published package:\n${util.joinList(newDependencies)}`); + messages.push(`The following new dependencies will be part of your published package:\n${util.joinList(newDependencies)}\n\nPlease make sure these new dependencies are intentional.`); } if (!isInteractive()) {