7 ms·
> Committing node_modules guarantees that the app works even if the NPM registry were to implode. Try to deploy your deno thing from a cold state (e.g. maybe yo
by ROARosen 4y ago
> Committing node_modules guarantees that the app works even if the NPM registry were to implode. Try to deploy your deno thing from a cold state (e.g. maybe you're moving to a different AWS region or a different provider or whatever) while there's a deno.land outage and it will blow up
You can just move your DENO_DIR (cache) along with the rest of your code the same way you can move your node_modules folder.
See:
https://deno.land/manual/linking_to_external_code https://deno.land/manual/linking_to_external_code
- lucacasonato 4y agoOr you can use `deno vendor` to check in your dependencies into version control, or put a caching HTTP proxy between you and the origin server. Don’t be fooled: Node & NPM have these same problems.