UNPKG

@tsdiapi/cli

Version:

A command-line tool for creating and managing scalable TSDIAPI projects with built-in plugin integration and configuration support.

15 lines 648 B
import chalk from "chalk"; import { findTSDIAPIServerProject } from "../utils/app-finder.js"; import { getPluginMetaDataFromRoot } from "../utils/plg-metadata.js"; export async function checkPluginConfig() { const currentDirectory = await findTSDIAPIServerProject(); if (!currentDirectory) { return console.log(chalk.red(`Not found package.json or maybe you are not using @tsdiapi/server!`)); } const config = await getPluginMetaDataFromRoot(currentDirectory); if (!config) { return console.log(chalk.red(`No plugin configuration found`)); } return true; } //# sourceMappingURL=check-plugin-config.js.map