deno icon indicating copy to clipboard operation
deno copied to clipboard

Specify deno version in `deno.json`

Open Zizaco opened this issue 4 months ago • 0 comments

It would be great to have the option to specify the Deno version that a project is compatible with. This information may not necessarily need to be considered by the runtime, but it could be valuable to receive a warning when running deno install.

Similar to the engines field of package.json

For instance, issues like these https://github.com/denoland/deno/issues/26413 would be easier to address.

// deno.json
{
  // ...
  "engine": [
    "[email protected]" // to raise a warning on v2.0.2 and 1.46.3
  ]
  // ...
}

Zizaco avatar Oct 19 '24 17:10 Zizaco