Make Node dependency outputs reproducible without build caches

This commit is contained in:
Timothy J. Aveni
2026-10-10 08:37:44 -07:00
parent d6434efc28
commit 6e591d5588
2 changed files with 22 additions and 0 deletions
+3
View File
@@ -13,6 +13,9 @@ let
test -d node_modules
mkdir -p "$out"
cp -a node_modules/. "$out/"
# Node resolves installed packages directly. This generated index is for
# Yarn's linker, not a runtime input; do not export build-session state.
rm -f "$out/.yarn-state.yml"
runHook postInstall
'';
};