Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion napi/minify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"build-dev": "napi build --no-dts-cache --platform",
"build": "pnpm run build-dev --release",
"test": "vitest --typecheck run ./test && tsc"
"test": "vitest run --dir ./test && tsc"
},
"engines": {
"node": ">=14.0.0"
Expand Down
5 changes: 3 additions & 2 deletions napi/parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"build": "pnpm run build-dev --release",
"build-wasi": "pnpm run build-dev --release --target wasm32-wasip1-threads",
"build-npm-dir": "rm -rf npm-dir && napi create-npm-dirs --npm-dir npm-dir && pnpm napi artifacts --npm-dir npm-dir --output-dir .",
"test": "vitest --typecheck run ./test/ && tsc",
"test": "pnpm run test-node run && tsc",
"test-node": "vitest --dir ./test",
"test-browser": "vitest -c vitest.config.browser.mts",
"bench": "vitest bench --run ./bench.bench.mjs"
},
Expand Down Expand Up @@ -52,7 +53,7 @@
"devDependencies": {
"@codspeed/vitest-plugin": "^4.0.0",
"@napi-rs/wasm-runtime": "^0.2.7",
"@vitest/browser": "3.0.7",
"@vitest/browser": "3.0.8",
"playwright": "^1.51.0",
"vitest": "catalog:"
},
Expand Down
20 changes: 12 additions & 8 deletions napi/parser/vitest.config.mts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
// Enable Codspeed plugin in CI only
const config = {};
if (process.env.CI) {
const codspeedPlugin = (await import('@codspeed/vitest-plugin')).default;
// @ts-ignore
config.plugins = [codspeedPlugin()];
}
import { defineConfig } from 'vitest/config';

export default config;
export default defineConfig({
test: {
diff: {
expand: false,
},
},
plugins: [
// Enable Codspeed plugin in CI only
process.env.CI && (await import('@codspeed/vitest-plugin')).default(),
],
});
2 changes: 1 addition & 1 deletion napi/transform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"build-dev": "napi --no-dts-cache build --platform",
"build": "pnpm run build-dev --release",
"test": "vitest --typecheck run ./test && tsc"
"test": "vitest run --dir ./test && tsc"
},
"engines": {
"node": ">=14.0.0"
Expand Down
77 changes: 17 additions & 60 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading