Skip to content

Commit bfba93d

Browse files
committed
build: bump version
1 parent aed29ae commit bfba93d

File tree

6 files changed

+11
-64
lines changed

6 files changed

+11
-64
lines changed

cli/print/missing-broadcasts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
* bun run cli/print/missing-broadcasts.ts lockup
1010
*/
1111

12-
import { checkBroadcast } from "@src/check-broadcast";
1312
import { Protocol } from "@src/enums";
13+
import { checkBroadcast } from "@src/internal/helpers";
1414
import { logger } from "@src/internal/logger";
1515
import { sablier } from "@src/sablier";
1616
import type { Sablier } from "@src/types";

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ alias b := build
2222

2323
# Clean the dist directory
2424
clean:
25-
bun rimraf dist
25+
bunx rimraf dist
2626

2727
# Run all code checks
2828
full-check: biome-check prettier-check tsc-check

src/check-broadcast.ts

Lines changed: 0 additions & 46 deletions
This file was deleted.

src/releases/helpers.ts

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,6 @@
11
import { chainsQueries } from "@src/chains/queries";
22
import _ from "lodash";
33

4-
export function sortDeployments<T extends { chainId: number }>(deployments: T[]): T[] {
5-
return deployments.sort((a, b) => {
6-
const aChain = chainsQueries.getOrThrow(a.chainId);
7-
const bChain = chainsQueries.getOrThrow(b.chainId);
8-
return aChain.name.localeCompare(bChain.name);
9-
});
10-
}
11-
12-
/**
13-
* @internal
14-
* Extract all string values from a nested object
15-
* @param obj The object to extract string values from
16-
* @returns Array of all string values from the object
17-
*/
184
export function getNestedValues<T extends Record<string, unknown>>(obj: T): string[] {
195
return _.flatMap(obj, (value) => {
206
if (_.isObject(value) && !_.isArray(value)) {
@@ -23,3 +9,11 @@ export function getNestedValues<T extends Record<string, unknown>>(obj: T): stri
239
return _.isString(value) ? value : [];
2410
});
2511
}
12+
13+
export function sortDeployments<T extends { chainId: number }>(deployments: T[]): T[] {
14+
return deployments.sort((a, b) => {
15+
const aChain = chainsQueries.getOrThrow(a.chainId);
16+
const bChain = chainsQueries.getOrThrow(b.chainId);
17+
return aChain.name.localeCompare(bChain.name);
18+
});
19+
}

tests/deployments/utils/loaders.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { checkBroadcast } from "@src/check-broadcast";
1+
import { checkBroadcast } from "@src/internal/helpers";
22
import type { Sablier } from "@src/types";
33
import * as fs from "fs-extra";
44
import { globby } from "globby";

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,5 @@
2323
"strict": true,
2424
"target": "ES2020"
2525
},
26-
"exclude": ["data", "node_modules"],
2726
"include": ["cli/**/*.ts", "src/**/*.ts", "tests/**/*.ts"]
2827
}

0 commit comments

Comments
 (0)