| 5 May 2024 |
Winter | the npm tooling only works with projects that have an npm lock file | 16:05:47 |
Tumble | wait, do i have to produce a binary? | 16:13:31 |
Winter | no | 16:15:26 |
Winter | the npm tooling will automatically produce a wrapper in $out/bin if your package.json is configured properly | 16:15:45 |
Tumble | nix build puts everything into result/lib/node_modules/(name)
but nix run tries to run /nix/store/.../bin/(name) which doesnt exist | 17:01:53 |
Tumble | ok figured it out | 17:19:30 |
Tumble | i searched github for a repo that has both buildNpmPackage and dontNpmBuild
https://github.com/ALT-F4-LLC/kickstart.nix/tree/f6385349c4dff04e3090559ff553492abd6f7e2d/template/nodejs-backend | 17:20:25 |