mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
fetchNpmDeps: allow package-json.lock symlinks, update hint
This commit is contained in:
parent
d04740c3aa
commit
84477691f7
@ -140,14 +140,14 @@
|
|||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
|
|
||||||
if [[ ! -f package-lock.json ]]; then
|
if [[ ! -e package-lock.json ]]; then
|
||||||
echo
|
echo
|
||||||
echo "ERROR: The package-lock.json file does not exist!"
|
echo "ERROR: The package-lock.json file does not exist!"
|
||||||
echo
|
echo
|
||||||
echo "package-lock.json is required to make sure that npmDepsHash doesn't change"
|
echo "package-lock.json is required to make sure that npmDepsHash doesn't change"
|
||||||
echo "when packages are updated on npm."
|
echo "when packages are updated on npm."
|
||||||
echo
|
echo
|
||||||
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
|
echo
|
||||||
|
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user