]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
workflow: improve bench scripts
authorEvan You <evan@vuejs.org>
Wed, 13 Nov 2024 06:13:32 +0000 (14:13 +0800)
committerEvan You <evan@vuejs.org>
Wed, 13 Nov 2024 06:13:32 +0000 (14:13 +0800)
package.json

index 763d6fa132ed530454bfa39219df786f86e663f9..12f1159e6391e7b0467d815958a239fbba070833 100644 (file)
@@ -22,7 +22,8 @@
     "test-dts": "run-s build-dts test-dts-only",
     "test-dts-only": "tsc -p packages-private/dts-built-test/tsconfig.json && tsc -p ./packages-private/dts-test/tsconfig.test.json",
     "test-coverage": "vitest run --project unit --coverage",
-    "test-bench": "vitest bench",
+    "bench": "vitest bench --project=unit --outputJson=temp/bench.json",
+    "bench-compare": "vitest bench --project=unit --compare=temp/bench.json",
     "release": "node scripts/release.js",
     "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
     "dev-esm": "node scripts/dev.js -if esm-bundler-runtime",