UNPKG

@pagopa/dx-cli

Version:

A CLI useful to manage DX tools.

14 lines (13 loc) 867 B
import { ResultAsync } from "neverthrow"; import { Config } from "../config.js"; import { Dependencies } from "./dependencies.js"; import { ValidationCheckResult } from "./validation.js"; import { Workspace } from "./workspace.js"; export type RepositoryReader = { fileExists(path: string): ResultAsync<boolean, Error>; findRepositoryRoot(cwd?: string): ResultAsync<string, Error>; getWorkspaces(repoRoot: string): ResultAsync<Workspace[], Error>; readFile(path: string): ResultAsync<string, Error>; }; export declare const checkPreCommitConfig: (dependencies: Pick<Dependencies, "repositoryReader">, repositoryRoot: string) => Promise<ValidationCheckResult>; export declare const checkTurboConfig: (dependencies: Pick<Dependencies, "packageJsonReader" | "repositoryReader">, repositoryRoot: string, config: Config) => Promise<ValidationCheckResult>;