npmHooks.npmConfigHook: make diagnostic match prefetch-npm-deps

This updates the diagnostic message for a missing package-lock.json to
match what fetchNpmDeps currently says
This commit is contained in:
Lily Foster 2022-11-25 18:01:20 -05:00 committed by Winter
parent 6db219730e
commit 669f019379

View file

@ -28,7 +28,7 @@ npmConfigHook() {
if ! [ -e "$srcLockfile" ]; then
echo
echo "ERROR: Missing package-lock.json from src. Expected to find it at: $srcLockfile"
echo "Hint: You can use the patches attribute to add a package-lock.json manually to the build."
echo "Hint: You can copy a vendored package-lock.json file via postPatch."
echo
exit 1