UNPKG

zod-to-appwrite

Version:

Generate Appwrite database collections from Zod schemas

8 lines (6 loc) 254 B
import { config } from 'dotenv'; import { fileURLToPath } from 'url'; import { dirname, resolve } from 'path'; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); config({ path: resolve(__dirname, '.env.test') });