Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow using local dependencies by providing their paths #192

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

icewind1991
Copy link

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;
  };
};

@andir
Copy link
Collaborator

andir commented Jan 18, 2024

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

@icewind1991
Copy link
Author

added some tests

@c0deaddict
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants