/cosmiconfig-typescript-loader

A TypeScript loader for Cosmiconfig

Primary LanguageTypeScriptMIT LicenseMIT

Banner

MIT Licensed NPM Version Build Status Greenkeeper Status

Code Issues Codebase Maintainability Test Coverage Jest

Commitizen Semantic Release Prettier

A TypeScript loader for Cosmiconfig

Installation

yarn add @endemolshinegroup/cosmiconfig-typescript-loader

Usage

import cosmiconfig from 'cosmiconfig';
import TypeScriptLoader from '@endemolshinegroup/cosmiconfig-typescript-loader';

const explorer = cosmiconfig('myModuleName', {
  loaders: {
    '.ts': {
      async: TypeScriptLoader,
    },
  },
});