@endemolshinegroup/cosmiconfig-typescript-loader
A TypeScript loader for Cosmiconfig
Last updated 4 years ago by endemolshinegroupbot .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @endemolshinegroup/cosmiconfig-typescript-loader 
SYNC missed versions from official npm registry.

Banner

MIT Licensed NPM Version Build Status Dependabot 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 moduleName = 'myModuleName';
const explorer = cosmiconfig(moduleName, {
  searchPlaces: [
    'package.json',
    `.${moduleName}rc`,
    `.${moduleName}rc.json`,
    `.${moduleName}rc.yaml`,
    `.${moduleName}rc.yml`,
    `.${moduleName}rc.ts`,
    `.${moduleName}rc.js`,
    `${moduleName}.config.ts`,
    `${moduleName}.config.js`,
  ],
  loaders: {
    '.ts': TypeScriptLoader,
  },
});

Current Tags

  • 3.0.2                                ...           latest (4 years ago)

7 Versions

  • 3.0.2                                ...           4 years ago
  • 3.0.1                                ...           4 years ago
  • 3.0.0                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           6 years ago

© 2010 - cnpmjs.org x YWFE | Home | YWFE