UNPKG

@schemifyjs/core

Version:

Core module of the SchemifyJS CLI. Provides reusable functions such as scaffolding, template handling, and general utilities.

9 lines (8 loc) 217 B
import fs from 'fs'; export class ProjectNotFoundValidator { static validate(basePath) { if (!fs.existsSync(basePath)) { throw new Error(`Project not found at: ${basePath}`); } } }