// File system utilities
-export async function rmIfExists(location) {
+export const rmIfExists = async function rmIfExists(location) {
try {
await access(location, constants.F_OK);
throw error;
}
-}
+};
-export async function ensureDirectoryExists(directory) {
+export const ensureDirectoryExists = async function ensureDirectoryExists(directory) {
try {
await access(directory);
throw error;
}
-}
+};