From 1a432073f48385a64f353ac661f5a67e67cb07e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phan=20Kochen?= Date: Tue, 13 Sep 2022 07:50:29 +0200 Subject: [PATCH] Ensure PnP loader is copied to package. Fixes #36. --- src/tmpl/yarn-project.nix.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tmpl/yarn-project.nix.in b/src/tmpl/yarn-project.nix.in index 83dd169..790fc47 100644 --- a/src/tmpl/yarn-project.nix.in +++ b/src/tmpl/yarn-project.nix.in @@ -152,6 +152,9 @@ let # include the node_modules folder in the package. if [ -d node_modules ]; then cp --recursive node_modules "$out/libexec/$name" + else + # Otherwise, assume PnP. Copy the loader into the package. + cp .pnp.* "$out/libexec/$name" fi cd "$out/libexec/$name"