mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
npmHooks.npmConfigHook: add diagnostic for when dependencies aren't provided
This commit is contained in:
parent
c0e7124bcc
commit
80ecb954e9
@ -8,6 +8,15 @@ npmConfigHook() {
|
||||
export HOME="$TMPDIR"
|
||||
export npm_config_nodedir="@nodeSrc@"
|
||||
|
||||
if [ -z "${npmDeps-}" ]; then
|
||||
echo
|
||||
echo "ERROR: no dependencies were specified"
|
||||
echo 'Hint: set `npmDeps` if using these hooks individually. If this is happening with `buildNpmPackage`, please open an issue.'
|
||||
echo
|
||||
|
||||
exit 1
|
||||
fi
|
||||
|
||||
local -r cacheLockfile="$npmDeps/package-lock.json"
|
||||
local -r srcLockfile="$PWD/package-lock.json"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user