News for hackers. Stuff that matters.
Re:Deno on MDN by megous on Monday August 23, 2021 @11:17AM (#28277114)
Why ship node_modules? Because you want to ship the complete app. At least rsync comes to the rescue for quick deploy of 10000 tiny files remotely.
Re:Deno on MDN by whostolemyhat on Tuesday August 24, 2021 @04:05AM (#28286172)
That seems incredibly wasteful and time-consuming.

You could only ship the source code and package-lock file and run `npm ci` or `npm install --production`, which would only install dependencies you're actually using on your production machine, rather than including testing libraries or build frameworks.

Even better, you could set up a build and take advantage of tree-shaking (to some extent at least), then ship less code in fewer files.