Should PayloadCMS be NPM first? #1182
Replies: 2 comments 1 reply
-
First of all, package managers like yarn or pnpm do not only exist because they install packages faster. They do way more than that but that's not the point here. You can simply swap out the payload scripts in your package.json with your preferred package manager exactly they way you suggested. You are not forced to use yarn at all. Take a look at their Remix repo which uses pnpm for example. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the thoughts @TomSmedley. Dev experience is one of the main focuses of Payload, so we make an ongoing effort to ensure that Payload runs well with any package manager. Other than your Docker example, are there any other issues that you run into with npm? Like @qivox said, you should be able to modify these scripts for your own needs. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
So I've personally avoided tools like yarn and pnpm, I know these are much faster than npm but how fast my packages install in the grand scheme of a project isn't going to make me miss any deadlines.
What I have found is PayloadCMS goes on the premise that everyone is using yarn. But we absolutely know that if someone is using node they have npm, assuming they also have yarn I think works against the DX.
For example
npm run build
doesyarn copyfiles...
I personally think this should be swapped tonpm run copyfiles...
by default. Also another thing when I'm deploying through Docker I also have to install yarn.What do you think?
Beta Was this translation helpful? Give feedback.
All reactions