Skip to content

Commit baa3726

Browse files
committed
refactor(tests/napi): add build-test script for tests (#12132)
1 parent d4ebd14 commit baa3726

File tree

7 files changed

+7
-1
lines changed

7 files changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ jobs:
172172
name: Run tests in workspace
173173
run: |
174174
rustup target add wasm32-wasip1-threads
175-
pnpm run build
175+
pnpm run build-test
176176
pnpm run test
177177
- if: steps.filter.outputs.src == 'true'
178178
name: Run e2e tests

napi/minify/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"browser": "browser.js",
66
"scripts": {
77
"build-dev": "napi build --platform",
8+
"build-test": "pnpm run build",
89
"build": "pnpm run build-dev --features allocator --release",
910
"postbuild-dev": "node patch.mjs",
1011
"test": "tsc && vitest run --dir ./test"

napi/oxlint2/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"type": "module",
66
"scripts": {
77
"build-dev": "napi build --platform --js ./bindings.js --dts ./bindings.d.ts --output-dir src --no-dts-cache --esm",
8+
"build-test": "pnpm run build-dev --release",
89
"build": "pnpm run build-dev --release",
910
"test": "vitest"
1011
},

napi/parser/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"browser": "wasm.mjs",
66
"scripts": {
77
"build-dev": "napi build --platform --js bindings.js",
8+
"build-test": "pnpm run build",
89
"build": "pnpm run build-dev --features allocator --release",
910
"postbuild-dev": "node patch.mjs",
1011
"build-wasi": "pnpm run build-dev --release --target wasm32-wasip1-threads",

napi/playground/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
"scripts": {
1616
"build-dev": "napi build --platform --target wasm32-wasip1-threads && node patch.mjs",
17+
"build-test": "pnpm run build",
1718
"build": "napi build --platform --release --target wasm32-wasip1-threads && node patch.mjs"
1819
},
1920
"dependencies": {

napi/transform/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"browser": "browser.js",
66
"scripts": {
77
"build-dev": "napi build --platform",
8+
"build-test": "pnpm run build",
89
"build": "pnpm run build-dev --features allocator --release",
910
"postbuild-dev": "node patch.mjs",
1011
"test": "tsc && vitest run --dir ./test"

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"scripts": {
99
"build": "pnpm --workspace-concurrency=1 --filter './napi/*' build",
1010
"build-dev": "pnpm --workspace-concurrency=1 --filter './napi/*' build-dev",
11+
"build-test": "pnpm --workspace-concurrency=1 --filter './napi/*' build-test",
1112
"test": "pnpm --workspace-concurrency=1 --filter './napi/*' test"
1213
},
1314
"devDependencies": {

0 commit comments

Comments
 (0)