denosaurs/denon

Outdated schema.json on deno.land

RuyiLi opened this issue · 0 comments

Describe the bug
The contents of https://deno.land/x/denon/schema.json (which is what appears on the README) differs from https://github.com/denosaurs/denon/blob/main/schema.json. Specifically, #151, which renames the importmap script option, invalidates the current schema, causing editors such as VSCode to incorrectly autocomplete "importmap".

To Reproduce

  1. Create a scripts.json file.
  2. Add the following property: "$schema": "https://deno.land/x/denon/schema.json"
  3. In an editor that supports Intellisense for JSON schemas, create a script and type "import", and look at the recommendations (should say "importmap" instead of "importMap" or "import-map")

Expected behavior
Recommendations should be "importMap" or "import-map".

Configuration or Project

{
  // optional but highly recommended
  "$schema": "https://deno.land/x/denon/schema.json",

  "scripts": {
    "start": {
      "import
    }
  }
}

Screenshots
image

Setup

  • OS: WSL (Ubuntu)
  • Deno version: 1.17.3
  • Denon version: 2.4.9