We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49c2680 commit 43e1e5eCopy full SHA for 43e1e5e
1 file changed
src/auth.ts
@@ -3,7 +3,7 @@
3
import { defineCommand } from "citty"
4
import consola from "consola"
5
6
-import { PATHS } from "./lib/paths"
+import { PATHS, ensurePaths } from "./lib/paths"
7
import { setupGitHubToken } from "./lib/token"
8
9
interface RunAuthOptions {
@@ -16,6 +16,7 @@ export async function runAuth(options: RunAuthOptions): Promise<void> {
16
consola.info("Verbose logging enabled")
17
}
18
19
+ await ensurePaths()
20
await setupGitHubToken({ force: true })
21
consola.success("GitHub token written to", PATHS.GITHUB_TOKEN_PATH)
22
0 commit comments