@boost/config
Version:
Powerful convention based finder, loader, and manager of both configuration and ignore files.
12 lines (10 loc) • 435 B
text/typescript
import { toArray } from '@boost/common';
import { type ExtendsSetting } from '../types';
import { mergeArray } from './mergeArray';
/**
* Merges previous and next file paths (either a string or array of strings) into a
* new list of file paths. This is useful if utilizing config extending.
*/
export function mergeExtends(prev: ExtendsSetting, next: ExtendsSetting): string[] {
return mergeArray(toArray(prev), toArray(next));
}