import path from "path" ; import tempDir from "temp-dir" ; import { Cache , CacheOptions } from "./types" ; export const initCache = ( { literateElmDirectory , } = { } ) : Cache => { return { literateElmDirectory : literateElmDirectory || path . resolve ( tempDir , "literate-elm" ) , } ; } ;