From b48b9304be9430cf6936802894c886d14f98fd35 Mon Sep 17 00:00:00 2001 From: Rory& Date: Tue, 30 Sep 2025 05:27:51 +0200 Subject: [PATCH] Flake: run scripts when updating npm hashes --- flake.nix | 2 +- hashes.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 3be04167..c459422d 100644 --- a/flake.nix +++ b/flake.nix @@ -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" diff --git a/hashes.json b/hashes.json index c5b3bd82..2926160b 100644 --- a/hashes.json +++ b/hashes.json @@ -1,3 +1,3 @@ { - "npmDepsHash": "sha256-p4dOIaV3rBJyMN+cAII+WCKOxXzjR70CkFwq9GXkrec=" + "npmDepsHash": "sha256-JolEhCK62tYUQN2ID5g3e/sKDBXAat3Ek5yg7uu7RqY=" }