add missing await
Some checks failed
Actions / Build and Push Documentation (push) Has been cancelled

This commit is contained in:
cswimr 2025-02-09 13:31:40 -06:00
parent 8bbc062e0c
commit 067fd34519
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087

View file

@ -14,7 +14,7 @@ See the [documentation](./docs) for more information.
```ts
> import { parsePackwiz } from "packwizjs";
> const packwizFile = parsePackwiz("./packwiz/pack.toml")
> const packwizFile = await parsePackwiz("./packwiz/pack.toml")
Packwiz {
location: Resource { path: './packwiz/pack.toml' },
index: { // The index file is automatically parsed alongside the pack.toml file
@ -42,7 +42,7 @@ Packwiz {
liteloader: undefined
}
}
> packwizFile.index.files[2].parse()
> await packwizFile.index.files[2].parse()
{
name: 'Fabric API',
filename: 'fabric-api-0.115.1+1.21.4.jar',
@ -61,4 +61,3 @@ Packwiz {
description: undefined
}
```