Skip to content

Commit dd0629f

Browse files
committed
experiment: try out patching
1 parent 71a3028 commit dd0629f

File tree

3 files changed

+227
-3
lines changed

3 files changed

+227
-3
lines changed

package-lock.json

Lines changed: 207 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,11 @@
5252
"build:deno": "node --loader ts-node/esm resources/build-deno.ts",
5353
"diff:npm": "node --loader ts-node/esm resources/diff-npm-package.ts",
5454
"gitpublish:npm": "bash ./resources/gitpublish.sh npm npmDist",
55-
"gitpublish:deno": "bash ./resources/gitpublish.sh deno denoDist"
55+
"gitpublish:deno": "bash ./resources/gitpublish.sh deno denoDist",
56+
"postinstall": "patch-package"
5657
},
5758
"devDependencies": {
59+
"patch-package": "^8.0.0",
5860
"@codspeed/tinybench-plugin": "^3.1.1",
5961
"@codspeed/vitest-plugin": "^3.1.1",
6062
"@docusaurus/core": "3.5.2",
@@ -89,7 +91,7 @@
8991
"typedoc": "0.26.6",
9092
"typescript": "5.4.5",
9193
"url-loader": "4.1.1",
92-
"vitest": "^2.1.3"
94+
"vitest": "2.1.3"
9395
},
9496
"publishConfig": {
9597
"tag": "alpha"

patches/@codspeed+core+3.1.0.patch

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
diff --git a/node_modules/@codspeed/core/dist/index.cjs.js b/node_modules/@codspeed/core/dist/index.cjs.js
2+
index 1c40cda..4a5d588 100644
3+
--- a/node_modules/@codspeed/core/dist/index.cjs.js
4+
+++ b/node_modules/@codspeed/core/dist/index.cjs.js
5+
@@ -26,7 +26,10 @@ const getV8Flags = () => {
6+
"--no-opt",
7+
"--predictable",
8+
"--predictable-gc-schedule",
9+
- "--interpreted-frames-native-stack"
10+
+ "--interpreted-frames-native-stack",
11+
+ // "--jitless",
12+
+ '--no-concurrent-sweeping',
13+
+ '--max-old-space-size=4096',
14+
];
15+
if (nodeVersionMajor < 18) {
16+
flags.push("--no-randomize-hashes");

0 commit comments

Comments
 (0)