Open felipecrs opened 11 months ago
Now with deno add
, this feature makes even more sense.
It would be awesome if deno compile
had the same option
Is DENO_FUTURE=1 deno install
the solution for this?
Well, would DENO_FUTURE=1 deno install
require switching to a package.json
setup? Or would it work with deno.json
as well - I think that would be the real make it or break it scenario here.
The DENO_FUTURE=1 deno install
command works with deno.json
.
It is a recommended practice in docker to create layers with only the required files so that docker can properly calculate whether that layer can be skipped (through the build cache) in case the files have not changed.
With Node.js, this is how we can do it:
However, with Deno, I could not find a equivalent way of doing that without having to copy all my source files.
If I add the source file, it defeats the original recommendation.
Some notes:
deno.jsonc
:deno.lock
is up to date.I believe there should be a way to cache dependencies just taking the lockfile as input. Something like:
What do you guys think?