Skip to content

wxt submit init generates a empty file #2045

@Almenon

Description

@Almenon

Describe the bug

wxt submit init generates a empty .env.submit file. I'm presuming it should have some contents in it?

C:\dev\replacely>npx wxt submit init
[dotenv@17.2.2] injecting env (0) from .env.production.chrome.local,.env.production.chrome,.env.chrome.local,.env.chrome,.env.production.local,.env.production,.env.local,.env -- tip: ⚙️  suppress all logs with { quiet: true }
ℹ Initialize or update an existing .env.submit file.                                                                                                                                                                                                                                                                                                                  3:43:05 PM

❯ What stores do you want to configure?
◻ Chrome Web Store
◻ Firefox Addon Store
◻ Edge Addon Store

After choosing Chrome with the Enter key:

none
◐ Writing to .env.submit...                                                                                                                                                                                                                                                                                                                                            3:43:51 PM  
ℹ Backed up old .env.submit to .env.submit.backup-1768693431028                                                                                                                                                                                                                                                                                                       3:43:51 PM   

✔ Wrote config to .env.submit                                                                                                                                                                                                                                                                                                                                         3:43:51 PM   

To submit an update, run:                                                                                                                                                                                                                                                                                                                                              3:43:51 PM  

  publish-extension --chrome-zip path/to/extension.zip \
    --firefox-zip path/to/extension.zip \
    --edge-zip path/to/extension.zip


C:\dev\replacely>cat .env.submit

C:\dev\replacely>

Reproduction

https://github.com/Almenon/Replacely/tree/428a3524ba27690701bd36cd15292de7e12ae314

Steps to reproduce

run wxt submit init

System Info

System:
    OS: Windows 11
  Binaries:
    Node: 22.21.1 - C:\Program Files\nodejs\node.EXE
    npm: 9.5.0 - C:\Program Files\nodejs\npm.CMD
    Deno: 1.32.4 - C:\Users\almenon\.deno\bin\deno.EXE
  Browsers:
    Chrome: 143.0.7499.194
    Edge: Chromium (142.0.3595.69)
    Firefox: 146.0.1 - C:\Program Files\Mozilla Firefox\firefox.exe
    Internet Explorer: 11.0.26100.7309
  npmPackages:
    wxt: ^0.20.6 => 0.20.11

Used Package Manager

npm

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending-triageSomeone (usually a maintainer) needs to look into this to see if it's a bug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions