UNPKG

winterspec

Version:

Write Winter-CG compatible routes with filesystem routing and tons of features

8 lines (7 loc) 272 B
import path from "node:path"; import fs from "node:fs/promises"; export const getTempPathInApp = async (rootDirectory) => { const tempDir = path.resolve(path.join(rootDirectory, ".winterspec")); await fs.mkdir(tempDir, { recursive: true }); return tempDir; };