UNPKG

@baqhub/cli

Version:

The official command line interface for the BAQ federated app platform.

9 lines (8 loc) 399 B
import * as fs from "node:fs/promises"; import { projectFileToProjectFilesPath, } from "./files/projectFile.js"; export async function resetProjectFiles(projectFile) { const projectFilesPath = projectFileToProjectFilesPath(projectFile); // Reset the directory. await fs.rm(projectFilesPath, { recursive: true, force: true }); await fs.mkdir(projectFilesPath, { recursive: true }); }