Skip to content

Commit fba3e04

Browse files
committed
build: add publish command
1 parent 1e3c953 commit fba3e04

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.env*
12
.wxt
23
dist
34
node_modules

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"dev:chrome": "wxt -b chrome",
1313
"dev:firefox": "wxt -b firefox",
1414
"postinstall": "wxt prepare",
15+
"publish": "npm run zip && wxt submit",
1516
"typecheck": "tsc --noEmit",
1617
"zip": "conc npm:zip:*",
1718
"zip:chrome": "wxt zip -b chrome",

wxt.config.ts

+4
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,8 @@ export default defineConfig({
1515
},
1616
],
1717
}),
18+
zip: {
19+
artifactTemplate: "{{browser}}.zip",
20+
sourcesTemplate: "sources.zip",
21+
},
1822
});

0 commit comments

Comments
 (0)