w7a9q
CRON on Deploy
Hey, is CRON working fine on Deploy? Maybe I don't know how to use it. I have created a file cron.ts a put there:
Deno.cron('Run once a minute', '* * * * *', () => {
console.log('Hello, cron!');
});
It deployed on prod but there is nothing in CRON tab.
1 replies
Zed code completion
Does anyone uses Zed with auto completion for Deno as in: https://zed.dev/docs/languages/deno
My config:
and
What should I config?
5 replies
Exclude packages from test coverage
Hi, I would like to exclude the packages from the coverage when I run
deno test --coverage
.
Currently I also get generated jsons inside coverage
directory with url
like this: "url": "file:///Users/johndoe/Workspace/Dev/lld-test/node_modules/.deno/wawoff2@2.0.1/node_modules/wawoff2/decompress.js"",
How do I avoid it?
Note that I have it excluded in my deno.json
as:
3 replies
Types for global variables
I have defined a global variable:
globalThis.Args = validateArguments(Deno.args);
Now whenever I use it I get TS error: Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature.deno-ts(7017)
How can I fix this?3 replies
Converting package.json into deno.json
Is there any documentation about what properties
deno.json
have and what are the expected values? I'm unable to find any.
I would like to put as many things as possible into deno.lock
from the package.json
. This would be really helpful.2 replies
Cannot run Nitro project
I have created a new Nitro project using
deno run -A npm:giget@latest nitro nitro-app --install
. It was successfull but after trying deno run dev
I get an error saying:
Is there any fix for that or is it a bug in Deno itself?8 replies