Leokuma
Have a trouble using github hooks and deno
Maybe
--allow-import
requires that you provide a specific domain? https://docs.deno.com/runtime/fundamentals/security/#importing-from-the-web17 replies
Is it reasonable to import TypeScript source from Github instead of compiled NPM library? (Twurple)
I think it will be a pain to try to import the package you're talking about via Github. I have imported only very simple TS files from Github, via jsdelivr
You can try to import it via esm.sh too, through a link similar to this:
https://esm.sh/twurple@1.0.0/common
6 replies
Is there a way to read the current raw options for stdin?
Sorry, I forgot to answer
I think there's no way to get the current state of stdin. You'll have to store the previous options somehow and then reassign them with
setRaw()
So if setRaw was false
before, you reassign it to false: setRaw(false, options)
But you could open an issue asking for a native way to retrieve that8 replies
How to exclude code and imports from deno compile binary?
I dont think there's a "native" Deno way to do that
You could try to use dynamic imports instead of static imports so that Deno only fetches them when they are called. If they are never called in production, they will never be fetched
I'm not sure what the behavior is with JSR, but another possible strategy would be to have 2
jsr.json
or 2 deno.json
, one for dev and another for production. You can also consider having 2 entrypoints to your app, like main.ts
and dev.ts
. I'm not sure if any of those would work for you, though11 replies