Skip to content

Commit 43e1e5e

Browse files
committed
chore: Ensure necessary paths exist before auth
1 parent 49c2680 commit 43e1e5e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/auth.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { defineCommand } from "citty"
44
import consola from "consola"
55

6-
import { PATHS } from "./lib/paths"
6+
import { PATHS, ensurePaths } from "./lib/paths"
77
import { setupGitHubToken } from "./lib/token"
88

99
interface RunAuthOptions {
@@ -16,6 +16,7 @@ export async function runAuth(options: RunAuthOptions): Promise<void> {
1616
consola.info("Verbose logging enabled")
1717
}
1818

19+
await ensurePaths()
1920
await setupGitHubToken({ force: true })
2021
consola.success("GitHub token written to", PATHS.GITHUB_TOKEN_PATH)
2122
}

0 commit comments

Comments
 (0)