Skip to content

Commit b3ea92b

Browse files
committed
Make async call to readFile
1 parent 3a6c872 commit b3ea92b

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ton-community/tlb-codegen",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "",
55
"main": "build/index.js",
66
"scripts": {
@@ -27,5 +27,6 @@
2727
"crc-32": "^1.2.2",
2828
"meow": "^9.0.0",
2929
"ts-jest": "^29.1.1"
30-
}
30+
},
31+
"packageManager": "pnpm@9.15.0+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c"
3132
}

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export function getTLBCodeByAST(tree: Program, input: string) {
2020
return tlbCode;
2121
}
2222

23-
export function getTLBCode(inputPath: string) {
24-
const input = fs.readFileSync(
23+
export async function getTLBCode(inputPath: string) {
24+
const input = await fs.readFile(
2525
inputPath,
2626
'utf-8',
2727
)

0 commit comments

Comments
 (0)