npmlock2nix icon indicating copy to clipboard operation
npmlock2nix copied to clipboard

allow using local dependencies by providing their paths

Open icewind1991 opened this issue 1 year ago • 3 comments

Provide a solution for #98

With this patch, given a package.json with

"dependencies": {
    "foo": "file:../foo"
},

you can tell npmlock2nix to resolve the local dependency using

npmlock2nix.v2.node_modules {
  src = ./.;
  localPackages = {
    "foo" = ../foo;
  };
};

icewind1991 avatar Dec 24 '23 17:12 icewind1991

Could you add a test case for this so we don't break it?

andir avatar Jan 18 '24 09:01 andir

added some tests

icewind1991 avatar Jan 20 '24 21:01 icewind1991

can this be merged? i would like to use npmlock2nix with a phoenix project.

c0deaddict avatar Sep 04 '24 11:09 c0deaddict