parent
d53b9f1e62
commit
49bf18803a
2 changed files with 8 additions and 3 deletions
devShells
|
@ -18,8 +18,13 @@
|
|||
};
|
||||
text = ''
|
||||
# this command might fail but still updates the main lockfile
|
||||
npm i --package-lock-only || true
|
||||
prefetch-npm-deps ./package-lock.json
|
||||
npm update --package-lock-only || true
|
||||
hash="$(prefetch-npm-deps ./package-lock.json)"
|
||||
echo "$hash"
|
||||
|
||||
if [[ -f ./default.nix ]]; then
|
||||
sed -i "s#npmDepsHash = .*#npmDepsHash = \"$hash\";#" ./default.nix
|
||||
fi
|
||||
'';
|
||||
};
|
||||
in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue