UNPKG

@strapi/strapi

Version:

An open source headless CMS solution to create and manage your own API. It provides a powerful dashboard and features to make your life easier. Databases supported: MySQL, MariaDB, PostgreSQL, SQLite

25 lines 1.09 kB
import type { Logger } from '../../cli/utils/logger'; interface EnsureAdminDependenciesOptions { cwd: string; logger: Logger; installIfMissing: boolean; } interface EnsureAdminDependenciesResult { didInstall: boolean; } /** * Ensures admin peer dependencies are declared (and optionally auto-installed). * * Policy (`installIfMissing`) is decided by the caller — e.g. build vs develop CLI flags. * Checking and installation are command-agnostic. */ declare const ensureAdminDependencies: ({ cwd, logger, installIfMissing, }: EnsureAdminDependenciesOptions) => Promise<EnsureAdminDependenciesResult>; /** * Runs {@link ensureAdminDependencies} and exits the process on failure. * * @returns `true` when the caller should continue, `false` when a re-exec was triggered. */ declare const handleAdminDependencies: (options: EnsureAdminDependenciesOptions) => Promise<boolean>; export { ensureAdminDependencies, handleAdminDependencies }; export type { EnsureAdminDependenciesOptions, EnsureAdminDependenciesResult }; //# sourceMappingURL=ensure-admin-dependencies.d.ts.map