JSPM

@endemolshinegroup/cosmiconfig-typescript-loader

3.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1092839
  • Score
    100M100P100Q212119F
  • License MIT

A TypeScript loader for Cosmiconfig

Package Exports

  • @endemolshinegroup/cosmiconfig-typescript-loader

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@endemolshinegroup/cosmiconfig-typescript-loader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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,
  },
});