aboutsummaryrefslogtreecommitdiff
path: root/src/cli/list-of-yarn-commands.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2023-07-11 19:14:34 -0700
committerGravatar GitHub <noreply@github.com> 2023-07-11 19:14:34 -0700
commitcbb88672f217a90db1aa1eb29cd92d5d9035b22b (patch)
tree43a00501f3cde495967e116f0b660777051551f8 /src/cli/list-of-yarn-commands.zig
parent1f900cff453700b19bca2acadfe26da4468c1282 (diff)
parent34b0e7a2bbd8bf8097341cdb0075d0908283e834 (diff)
downloadbun-cbb88672f217a90db1aa1eb29cd92d5d9035b22b.tar.gz
bun-cbb88672f217a90db1aa1eb29cd92d5d9035b22b.tar.zst
bun-cbb88672f217a90db1aa1eb29cd92d5d9035b22b.zip
Merge branch 'main' into jarred/esm-conditionsjarred/esm-conditions
Diffstat (limited to 'src/cli/list-of-yarn-commands.zig')
-rw-r--r--src/cli/list-of-yarn-commands.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cli/list-of-yarn-commands.zig b/src/cli/list-of-yarn-commands.zig
index 250541360..4109ed727 100644
--- a/src/cli/list-of-yarn-commands.zig
+++ b/src/cli/list-of-yarn-commands.zig
@@ -1,4 +1,5 @@
const std = @import("std");
+const bun = @import("root").bun;
// yarn v2.3 commands
const yarn_v2 = [_][]const u8{
@@ -82,7 +83,7 @@ pub const all_yarn_commands = brk: {
var array: [yarn_v2.len + yarn_v1.len]u64 = undefined;
var array_i: usize = 0;
for (yarn_v2) |yarn| {
- const hash = std.hash.Wyhash.hash(0, yarn);
+ const hash = bun.hash(yarn);
@setEvalBranchQuota(9999);
if (std.mem.indexOfScalar(u64, array[0..array_i], hash) == null) {
@setEvalBranchQuota(9999);
@@ -94,7 +95,7 @@ pub const all_yarn_commands = brk: {
for (yarn_v1) |yarn| {
@setEvalBranchQuota(9999);
- const hash = std.hash.Wyhash.hash(0, yarn);
+ const hash = bun.hash(yarn);
if (std.mem.indexOfScalar(u64, array[0..array_i], hash) == null) {
@setEvalBranchQuota(9999);