From 278f86e5cde8ff0f4e5d11c0fceae292f87ae0fa Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Fri, 1 May 2020 21:30:42 -0400 Subject: [PATCH] Add messaging around first-run behaviour (#17) * wip: add messaging * chore: typo --- src/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/index.js b/src/index.js index 2db8afa..4d05c07 100644 --- a/src/index.js +++ b/src/index.js @@ -33,6 +33,12 @@ if (!existsSync(MANIFEST_FILENAME)) { console.log( `Package size (${currentStats.packageSize}) adopted as new limit.`, ) + + if (!isUpdatingManifest) { + console.log( + '❗ It looks like you ran PackWatch without a manifest. To prevent accidental passes in CI or hooks, packwatch will terminate with an error. If you are running packwatch for the first time in your project, this is expected!', + ) + } // If the update flag wasn't specified, exit with a non-zero code so we // don't "accidentally" pass CI builds if the manifest didn't exist process.exit(isUpdatingManifest ? 0 : 1)