Skip to main content

watch()

API > @betterer/betterer > watch

Create a BettererRunner with the given options. Also starts up a file watcher for tracked files in the current working directory.

Signature

export declare function watch(options?: BettererOptionsWatch): Promise<BettererRunner>;

Parameters

ParameterTypeDescription
optionsBettererOptionsWatchOptions for creating the runner.

Returns

Promise<BettererRunner>

Exceptions

BettererError Will throw if something goes wrong while creating the runner or watcher.

Example

import { betterer } from '@betterer/betterer';

const runner = await betterer.watch(options);