import '@johnlindquist/kit'
import { rmdirSync, existsSync } from 'fs'
const envPath = await env('PROJECT_DIR')
const projectDir = home(envPath)
const isGit = (input: string | Record<string, string>) =>
typeof input == 'string' ? input.includes('github.com') : false
const unfilteredProjectList = await readdir(projectDir)
const projectList = unfilteredProjectList.filter(
(value: string) => !value.includes('.')
)
let { projects, write } = await db('projects', {
projects: projectList
})