Ensure PnP loader is copied to package. Fixes #36.

This commit is contained in:
Stéphan Kochen
2022-09-13 07:50:29 +02:00
parent 314b1b378c
commit 1a432073f4
+3
View File
@@ -152,6 +152,9 @@ let
# include the node_modules folder in the package. # include the node_modules folder in the package.
if [ -d node_modules ]; then if [ -d node_modules ]; then
cp --recursive node_modules "$out/libexec/$name" cp --recursive node_modules "$out/libexec/$name"
else
# Otherwise, assume PnP. Copy the loader into the package.
cp .pnp.* "$out/libexec/$name"
fi fi
cd "$out/libexec/$name" cd "$out/libexec/$name"