move from npmlock2nix to importNpmLock

This commit is contained in:
Robin Appelman 2025-03-30 16:01:15 +02:00
commit 0c7e51f94b
3 changed files with 6 additions and 31 deletions

View file

@ -1,11 +1,11 @@
{
npmlock2nix,
nodejs_20,
importNpmLock,
nodejs,
lib,
}: let
inherit (lib.sources) sourceByRegex;
in
npmlock2nix.v2.node_modules {
src = sourceByRegex ../. ["package.*"];
nodejs = nodejs_20;
importNpmLock.buildNodeModules {
inherit nodejs;
npmRoot = sourceByRegex ../. ["package.*"];
}