Monorepo for wisp.place. A static site hosting service built on top of the AT Protocol.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix/cli: resolve path before ensureDir

authored by

uwx and committed by
Tangled
b82109c1 53c37459

+2 -2
+2 -2
cli/lib/auth.ts
··· 1 1 import { existsSync, mkdirSync, readFileSync, unlinkSync, writeFileSync } from 'node:fs' 2 2 import { homedir } from 'node:os' 3 - import { dirname, join } from 'node:path' 3 + import { dirname, join, resolve } from 'node:path' 4 4 import { Agent, CredentialSession } from '@atproto/api' 5 5 import { 6 6 NodeOAuthClient, ··· 38 38 } 39 39 40 40 function ensureDir(filePath: string) { 41 - const dir = dirname(filePath) 41 + const dir = dirname(resolve(filePath)) 42 42 if (!existsSync(dir)) { 43 43 mkdirSync(dir, { recursive: true }) 44 44 }