npm2nix
npm2nix copied to clipboard
There is no `file` variable
Thus, it crashes.
https://github.com/NixOS/npm2nix/blob/master/src/npm2nix.coffee#L201 https://github.com/NixOS/npm2nix/blob/master/src/npm2nix.coffee#L238
Yay for dynamically typed languages
Checking it with flow:
/home/philip/tmp/npm2nix/src/npm2nix.js:265:25,28: identifier file
Could not resolve name
/home/philip/tmp/npm2nix/src/npm2nix.js:298:23,26: identifier file
Could not resolve name