Flake: run scripts when updating npm hashes
This commit is contained in:
parent
5844835308
commit
b48b9304be
@ -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"
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
{
|
||||
"npmDepsHash": "sha256-p4dOIaV3rBJyMN+cAII+WCKOxXzjR70CkFwq9GXkrec="
|
||||
"npmDepsHash": "sha256-JolEhCK62tYUQN2ID5g3e/sKDBXAat3Ek5yg7uu7RqY="
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user