Skip to content

Commit f4fa36a

Browse files
authored
chore: Use bun run --sequential to simplify package scripts (#2252)
1 parent 4d5eb28 commit f4fa36a

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

packages/wxt-demo/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
"dev:firefox": "buildc --deps-only -- wxt -b firefox",
99
"dev:firefox-mv3": "buildc --deps-only -- wxt -b firefox --mv3",
1010
"build": "buildc --deps-only -- wxt build",
11-
"build:all": "buildc --deps-only -- bun run build:all:chrome-mv3 && bun run build:all:chrome-mv2 && bun run build:all:firefox-mv3 && bun run build:all:firefox-mv2",
12-
"build:all:chrome-mv3": "wxt build",
13-
"build:all:chrome-mv2": "wxt build --mv2",
14-
"build:all:firefox-mv3": "wxt build -b firefox --mv3",
15-
"build:all:firefox-mv2": "wxt build -b firefox",
11+
"build:all": "buildc --deps-only -- bun run --sequential 'build:*-*'",
12+
"build:chrome-mv3": "wxt build",
13+
"build:chrome-mv2": "wxt build --mv2",
14+
"build:firefox-mv3": "wxt build -b firefox --mv3",
15+
"build:firefox-mv2": "wxt build -b firefox",
1616
"test": "buildc --deps-only -- vitest",
1717
"test:coverage": "bun run test run --coverage",
1818
"zip": "buildc --deps-only -- wxt zip",

packages/wxt/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"wxt": "bun run src/cli/index.ts",
99
"build": "buildc -- bun run tsdown --config-loader unrun",
10-
"check": "bun run build && bun run check:default && bun run check:tsc-virtual",
10+
"check": "bun run build && bun run --sequential 'check:*'",
1111
"check:default": "check",
1212
"check:tsc-virtual": "tsc --noEmit -p src/virtual",
1313
"test": "buildc --deps-only -- vitest",

packages/wxt/src/utils/content-script-ui/__tests__/index.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ describe('Content Script UIs', () => {
4747
<p id="three"></p>
4848
</div>
4949
`;
50-
// @ts-ignore
5150
window.fetch = fetch;
5251
fetch.mockResolvedValue({ text: () => Promise.resolve('') });
5352
ctx = new ContentScriptContext('test');

0 commit comments

Comments
 (0)