m4rc3l05
Deno v2 deno install not installing all dep files
Hey, trying to create a docker image using deno v2 where i install dependencies before copying source files like
But i am running into a problem when i run the image i get an error:
My deno.json file looks like
What could be the issue? i am under the impression that
deno install
would install all files from all deps8 replies
How to check if stdin is a file?
Hey, how does one check if stdin is a file? in nodejs we could do something like
fs.fstatSync(process.stdin.fd).isFile()
(example: https://github.com/pinojs/pino-pretty/blob/master/bin.js#L86) which in deno can be translated to Deno.fstatSync(Deno.stdin.rid).isFile
.
Despite this working for for deno v1, it will not work for deno v2 since both fstatSync
and rid
will be deprecated, with the first one being deleted entirely.
So for deno v2 how can we do this?20 replies