@@ -22,7 +22,7 @@ The title of your pull request should follow the [conventional commit format](#c
22
22
23
23
## Setup
24
24
25
- WXT uses ` pnpm ` , so make sure you have it installed.
25
+ WXT uses ` bun ` , so make sure you have it installed.
26
26
27
27
``` sh
28
28
corepack enable
@@ -31,7 +31,7 @@ corepack enable
31
31
Then, simply run the install command:
32
32
33
33
``` sh
34
- pnpm i
34
+ bun i
35
35
```
36
36
37
37
## Development
@@ -41,44 +41,44 @@ Here are some helpful commands:
41
41
``` sh
42
42
# Build WXT package
43
43
cd packages/wxt
44
- pnpm build
44
+ bun run build
45
45
```
46
46
47
47
``` sh
48
48
# Build WXT package, then build demo extension
49
49
cd packages/wxt-demo
50
- pnpm build
50
+ bun run build
51
51
```
52
52
53
53
``` sh
54
54
# Build WXT package, then start the demo extension in dev mode
55
55
cd packages/wxt-demo
56
- pnpm dev
56
+ bun dev
57
57
```
58
58
59
59
``` sh
60
60
# Run unit and E2E tests
61
- pnpm test
61
+ bun run test
62
62
```
63
63
64
64
``` sh
65
65
# Start the docs website locally
66
- pnpm docs:dev
66
+ bun docs:dev
67
67
```
68
68
69
69
## Profiling
70
70
71
71
``` sh
72
72
# Build the latest version
73
- pnpm --filter wxt build
73
+ bun run --filter wxt build
74
74
75
75
# CD to the demo directory
76
76
cd packages/wxt-demo
77
77
78
78
# 1. Generate a flamechart with 0x
79
- pnpm dlx 0x node_modules/wxt/bin/wxt.mjs build
79
+ bunx 0x node_modules/wxt/bin/wxt.mjs build
80
80
# 2. Inspect the process with chrome @ chrome://inspect
81
- pnpm node --inspect node_modules/wxt/bin/wxt.mjs build
81
+ node --inspect node_modules/wxt/bin/wxt.mjs build
82
82
```
83
83
84
84
## Updating Docs
@@ -96,7 +96,7 @@ WXT has unit and E2E tests. When making a change or adding a feature, make sure
96
96
To run tests for a specific file, add the filename at the end of the test command:
97
97
98
98
``` sh
99
- pnpm test manifest-contents
99
+ bun run test manifest-contents
100
100
```
101
101
102
102
All test (unit and E2E) for all packages are ran together via [ Vitest workspaces] ( https://vitest.dev/guide/#workspaces-support ) .
@@ -149,7 +149,7 @@ Releases are done with GitHub actions:
149
149
Use [ ` taze ` ] ( https://www.npmjs.com/package/taze ) to upgrade dependencies throughout the entire monorepo.
150
150
151
151
``` sh
152
- pnpm dlx taze -r
152
+ bunx taze@latest -r
153
153
```
154
154
155
155
Configuration is in [ ` taze.config.ts ` ] ( ./taze.config.ts ) .
0 commit comments