Flake: run scripts when updating npm hashes

This commit is contained in:
Rory& 2025-09-30 05:27:51 +02:00
parent 5844835308
commit b48b9304be
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@
];
text = ''
rm -rf node_modules
${pkgs.nodejs_24}/bin/npm install --save --no-audit --no-fund --prefer-offline --ignore-scripts --no-bin-links
${pkgs.nodejs_24}/bin/npm install --save --no-audit --no-fund --prefer-offline
DEPS_HASH=$(prefetch-npm-deps package-lock.json)
TMPFILE=$(mktemp)
jq '.npmDepsHash = "'"$DEPS_HASH"'"' hashes.json > "$TMPFILE"

View File

@ -1,3 +1,3 @@
{
"npmDepsHash": "sha256-p4dOIaV3rBJyMN+cAII+WCKOxXzjR70CkFwq9GXkrec="
"npmDepsHash": "sha256-JolEhCK62tYUQN2ID5g3e/sKDBXAat3Ek5yg7uu7RqY="
}