UNPKG

@backtrace/javascript-cli

Version:
19 lines (18 loc) 1.01 kB
import { ProcessedSourceAndSourceMap, SourceAndSourceMap } from '@backtrace/sourcemap-tools'; import { GlobalOptions } from '..'; import { Command, CommandContext } from '../commands/Command'; export interface ProcessOptions extends GlobalOptions { readonly path: string | string[]; readonly include: string | string[]; readonly exclude: string | string[]; readonly 'dry-run': boolean; readonly force: boolean; readonly 'pass-with-no-files': boolean; readonly 'asset-error-behavior': string; } export declare const processCmd: Command<ProcessOptions>; /** * Processes source files found in path(s). */ export declare function processSources({ opts, logger, getHelpMessage }: CommandContext<ProcessOptions>): Promise<import("@backtrace/sourcemap-tools").ResultErr<string> | import("@backtrace/sourcemap-tools").ResultOk<ProcessedSourceAndSourceMap[]>>; export declare function processSource(force: boolean): (asset: SourceAndSourceMap) => Promise<ProcessedSourceAndSourceMap>;