Write deps file in indented rather than minified JSON master
authorNick Downing <nick@ndcode.org>
Tue, 25 Jan 2022 07:02:53 +0000 (18:02 +1100)
committerNick Downing <nick@ndcode.org>
Tue, 25 Jan 2022 07:02:53 +0000 (18:02 +1100)
disk_build.js

index 6de11c4..62585d3 100644 (file)
@@ -95,7 +95,7 @@ let disk_build = async (pathname, build_func, diag) => {
       let out_deps_temp_pathname = out_deps_pathname + '.temp'
       await fs_writeFile(
         out_deps_temp_pathname,
-        JSON.stringify(out_deps) + '\n',
+        JSON.stringify(out_deps, null, 2) + '\n',
         {encoding: 'utf-8'}
       )
       await fs_rename(out_deps_temp_pathname, out_deps_pathname)