What files in the pnpm /dist are required to run pnpm? #7684
Unanswered
florian-g2
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there,
I'm looking to embed pnpm into a internal CLI tool and I'm wondering what files in the /dist directory are actually required at runtime.
(the /dist directory from e.g. https://registry.npmjs.org/pnpm/-/pnpm-8.15.3.tgz)
I tested running
node ./bin/pnpm.cjs create vite
andnode ./bin/pnpm.cjs install
with just the/bin/pnpm.cjs
,/dist/pnpm.cjs
and/dist/worker.js
files and it seems that it works just great.What functionality am I missing out on when omitting these dirs / files:
/dist/node_modules/*
/dist/node-gyp-bin/*
/dist/scripts/*
/dist/vendor/*
/dist/reflink.darwin-arm64-MYEHQQCP.node
/dist/reflink.darwin-x64-CDTBYYIZ.node
/dist/reflink.win32-arm64-msvc-IYGSKCGJ.node
/dist/reflink.win32-x64-msvc-5E6AAURT.node
Would the absence of these dirs / files cause issues on a Linux / macOS machine?
Thank you in advance! 😊
Florian
Beta Was this translation helpful? Give feedback.
All reactions