Closed andyjp closed 2 months ago
As a temporary workaround, you can add a deno.json at ~/workspaces/deno.json
with the following:
{
"workspace": {
"members": ["./app"]
},
"unstable": ["cron"]
}
That will merge with the npm workspace. I'm working on a fix right now though.
Should be fixed and released in 1.45.1
By the way, if there's no package.json not part of the workspace beside the deno.json, then this is a regression in Deno 1.45. I opened https://github.com/denoland/deno/issues/24554
Version: Deno 1.45.0
When upgrading to 1.45.0, I noticed that the Deno.cron function wasn't getting added anymore in our deno app inside a npm workspace when defining the cron unstable flag in deno.json.
Here is a reproducible example:
package.json located at
~/workspaces/package.json
deno.json located at
~/workspaces/app/deno.json
Deno.cron is undefined
Deno.cron is defined if using version 1.44.4 or when removing
"workspaces": []
from the package.jsonOutput when using 1.44.4