Skip to content

Clarify pacakge.json vs deno.json for deno desktop + frameworks #3379

Open

Description

@tredondo

The skeletons of the frameworks at https://docs.deno.com/runtime/desktop/frameworks/ are generated with a package.json (e.g. by deno init --npm vite). The schema of that package.json doesn't have the desktop key that deno desktop expects. It would help to have some guidance on the best practice for this situation:

  • keep both package.json and deno.json?
  • fold package.json into deno.json?

Activity

  1. bartlomieju commented on Jun 30, 2026

    @bartlomieju
    Member

    Use package.json for dependencies, use deno.json for configuring deno desktop feature (and Deno in general). I'll update the page later.

  2. tredondo commented on Jun 30, 2026

    @tredondo
    ContributorAuthor

    Thanks, that's what https://docs.deno.com/runtime/fundamentals/configuration/ advises too. I did just try this in a Vite React project, and it seems deno desktop ignores deno.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions