fix: include runner in dependencies and await context create (#43)

Co-authored-by: Simple Systemer <simplesystemer@users.noreply.github.com>
Co-authored-by: denissb <spawnenius@gmail.com>
This commit is contained in:
Morten Olsen
2024-01-15 21:41:27 +01:00
parent 1c3b993ab2
commit e5064ca905
3 changed files with 8 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
import envPaths from 'env-paths';
import { existsSync, readFileSync, writeFileSync } from 'fs';
import { mkdir, readdir } from 'fs/promises';
import { existsSync, readFileSync } from 'fs';
import { mkdir, readdir, writeFile } from 'fs/promises';
import { dirname, join } from 'path';
type ContextValues = {
@@ -42,8 +42,8 @@ class Context {
return;
}
const json = JSON.stringify(this.#config);
mkdir(dirname(this.#location), { recursive: true });
writeFileSync(this.#location, json);
await mkdir(dirname(this.#location), { recursive: true });
await writeFile(this.#location, json);
};
public static list = async () => {