4 ms·
Thanks for the response. I didn't know that NPM packages aren't just Git pulls as they are in Composer. That's surprising. I wonder why they decided against imp
by Cyberdog 5y ago
Thanks for the response. I didn't know that NPM packages aren't just Git pulls as they are in Composer. That's surprising. I wonder why they decided against implementing it that way - it seems like just using Git or other package managers would save from having to deal with hosting, versioning, and so many other things inside the manager system itself.
- francislavoie 5y agoGenerally, NPM packages are transpiled/minified with webpack (or w/e newer tool) and published as minified bundles. That's why it's done that way. It avoids committing the webpack compiled dist to the repo. With PHP, since there's no compile/minify step, there's no need for "build artifacts", so you can grab the code directly and run it as-is. But obviously this has big supply-chain security downsides.