Skip to content

Commit

Permalink
chore: Run wxt prepare on postinstall
Browse files Browse the repository at this point in the history
  • Loading branch information
aklinker1 committed Jul 14, 2023
1 parent f28a29e commit c1ea9ba
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"build:all:chrome-mv2": "wxt build --mv2",
"build:all:firefox-mv3": "wxt build -b firefox --mv3",
"build:all:firefox-mv2": "wxt build -b firefox",
"prepare": "pnpm -w build && wxt prepare"
"postinstall": "pnpm -w build && wxt prepare"
},
"dependencies": {
"webextension-polyfill": "^0.10.0"
Expand Down
3 changes: 2 additions & 1 deletion docs/get-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ Finally, add scripts to your `package.json`:
"dev": "wxt", // [!code ++]
"dev:firefox": "wxt --browser firefox", // [!code ++]
"build": "wxt build", // [!code ++]
"build:firefox": "wxt build --browser firefox" // [!code ++]
"build:firefox": "wxt build --browser firefox", // [!code ++]
"postinstall": "wxt prepare" // [!code ++]
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion templates/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build": "wxt build",
"build:firefox": "wxt build -b firefox",
"compile": "tsc --noEmit",
"prepare": "wxt prepare"
"postinstall": "wxt prepare"
},
"dependencies": {
"react": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion templates/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"build": "wxt build",
"build:firefox": "wxt build -b firefox",
"check": "svelte-check --tsconfig ./tsconfig.json",
"prepare": "wxt prepare"
"postinstall": "wxt prepare"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^2.4.2",
Expand Down
2 changes: 1 addition & 1 deletion templates/vanilla/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build": "wxt build",
"build:firefox": "wxt build -b firefox",
"compile": "tsc --noEmit",
"prepare": "wxt prepare"
"postinstall": "wxt prepare"
},
"devDependencies": {
"typescript": "^5.1.6",
Expand Down
2 changes: 1 addition & 1 deletion templates/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build": "wxt build",
"build:firefox": "wxt build -b firefox",
"compile": "vue-tsc --noEmit",
"prepare": "wxt prepare"
"postinstall": "wxt prepare"
},
"dependencies": {
"vue": "^3.3.4"
Expand Down

0 comments on commit c1ea9ba

Please sign in to comment.