Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Created August 11, 2019 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cleverca22/170d018d6d70768554c96d8ddb0605da to your computer and use it in GitHub Desktop.
Save cleverca22/170d018d6d70768554c96d8ddb0605da to your computer and use it in GitHub Desktop.
[clever@amd-nixos:~/iohk/yarn2nix]$ git diff
diff --git a/bin/yarn2nix.js b/bin/yarn2nix.js
index 6213edb..2c02614 100755
--- a/bin/yarn2nix.js
+++ b/bin/yarn2nix.js
@@ -129,6 +129,7 @@ Promise.all(pkgs.map(updateResolvedSha1)).then(() => {
if (newData != data) {
console.error("found changes in the lockfile", options["--lockfile"]);
+ fs.writeFileSync("output.txt", newData);
if (options["--no-patch"]) {
console.error("...aborting");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment