import os from 'os' ; import path from 'path' ; import { mkdirSync } from 'fs' ; const SAO_CACHE_VERSION = 2 ; export const ROOT_CACHE_PATH = path . join ( os . homedir ( ) , `.sao/V${ SAO_CACHE_VERSION }` ) ; export const REPOS_CACHE_PATH = path . join ( ROOT_CACHE_PATH , 'repos' ) ; export const PACKAGES_CACHE_PATH = path . join ( ROOT_CACHE_PATH , 'packages' ) ; export const GENERATORS_LIST_PATH = path . join ( ROOT_CACHE_PATH , 'generators-list.json' ) ; mkdirSync ( ROOT_CACHE_PATH , { recursive : true } ) ;