Closed infinisil closed 5 months ago
This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/tweag-nix-dev-update-29/18903/1
@infinisil Darn it, this is was a feature I kind of needed. What do you recommend instead of this branch?
@elmarsto Not using npmlock2nix right now unfortunately. Feel free to use my code though for a new PR or fork
Implement npm registry authentication, allowing access to private registries via
.npmrc
This PR also includes the first two commits from #151 since the same changes are needed for authentication support.
Unfortunately the NixOS VM test for authentication created in this PR can't run in GitHub Actions, but it works locally.
TODO:
.npmrc
fields_authToken
and_auth
_authToken
.npmrc
fields_password
andusername
(this might not be possible)package-lock.json
and.npmrc
generated by npm (the current one is hand-written)npm
with the example from the current test.npmrc
, see https://stackoverflow.com/questions/53099434/using-auth-tokens-in-npmrc