Description: Fix build problem.
 This change seem to avoid some race condition where node reads the file is is
 also writing before it is completely writte.
Author: James Valleroy
Bug-Debian: https://bugs.debian.org/1058552
Forwarded: no
Reviewed-By: Petter Reinholdtsen
Last-Update: 2024-04-13

---
Index: science.js-salsa/Makefile
===================================================================
--- science.js-salsa.orig/Makefile	2024-04-13 16:55:26.413339960 +0200
+++ science.js-salsa/Makefile	2024-04-13 16:55:40.657474594 +0200
@@ -77,7 +77,7 @@
 
 package.json: src/package.js
 	@rm -f $@
-	node src/package.js > $@
+	node src/package.js > package.json.temp && mv package.json.temp $@
 	@chmod a-w $@
 
 clean:
