UNPKG

@tmraaex/create-structure

Version:

CLI-verktyg för att skapa en standardiserad projektstruktur med TypeScript

17 lines (13 loc) 371 B
import fs from "fs"; import path from "path"; // Funktion för att skapa en mapp om den inte redan finns const createDir = (dirPath) => { if (!fs.existsSync(dirPath)) { fs.mkdirSync(dirPath, { recursive: true }); console.log(`📁 Mapp skapad: ${dirPath}`); } }; const createDirs = (root) => { createDir(root); }; export { createDirs };