graycoreio/daffodil

View on GitHub
tools/dgeni/src/utils/configurator/path.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Package } from 'dgeni';

import {
  InputPathsConfig,
  inputPathsConfigurator,
} from './input';
import {
  OutputPathsConfig,
  outputPathsConfigurator,
} from './output';
import { Configurator } from './type';

export type PathsConfig = InputPathsConfig & OutputPathsConfig;

export const pathsConfigurator: Configurator<PathsConfig> = (config: PathsConfig) => (pkg: Package) =>
  outputPathsConfigurator(config)(inputPathsConfigurator(config)(pkg));