Skip to content

Deno support #1307

Open

Description

@aklinker1

Feature Request

It is kinda possible to use WXT with Deno: wxt+deno.zip

However there are a few problems:

  1. package.json isn't found (because we use a deno.json) so the name/version can't be extracted automatically
  2. wxt build and wxt zip don't exit
  3. TSConfig doesn't exist, so we can't extend .wxt/tsconfig.json... Creating a tsconfig.json separate from the deno.json breaks deno run, so the only option is to reference .wxt/wxt.d.ts from another declaration file. This means all the import path aliases won't be recognized. You could manually add them to deno.json, but 🤷 I didn't for this example
  4. Postinstall script inside deno.json doesn't run after running deno i
  5. Need to look into JSR and downloading private packages from a repo during sources ZIP. Basically need to implement a deno package manager here: https://github.com/wxt-dev/wxt/tree/main/packages/wxt/src/core/package-managers
  6. Look into potential issues around wxt.config.ts file typing: Added missing member used in UserManifest to define the manifest name. #1336 (comment)

These things kinda get in the way of the existing template setup and wxt init command. Similar to PNPM, we'll need to modify the files after downloading them for it to work with deno.

Is your feature request related to a bug?

N/A

What are the alternatives?

N/A

Additional context

I've been using deno lately and it's very good. Want to make sure WXT supports it.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions