Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@endemolshinegroup/cosmiconfig-typescript-loader

EndemolShineGroup2.5mMIT3.0.2TypeScript support: included

A TypeScript loader for Cosmiconfig

cosmiconfig, cosmiconfig-loader, typescript

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

changelog

3.0.2 (2020-09-05)

Bug Fixes

  • remove yarn from engines declarations (26e9aec), closes #77
  • use valid version of Yarn in engines (09983de), closes #77

3.0.1 (2020-09-04)

Bug Fixes

  • publish only necessary files to npm (edc924e)

3.0.0 (2020-06-20)

Build System

  • change minimum supported Node version (c450d41)

BREAKING CHANGES

  • change minimum supported version of Node to v10

2.0.0 (2020-06-20)

Features

  • deps: update cosmiconfig (dc9a903)

BREAKING CHANGES

  • deps: cosmiconfig API has changed in latest version

1.0.2 (2020-06-20)

Bug Fixes

  • dependencies: limit cosmiconfig peer dependency with upper boundary (ec0c4f2)

1.0.1 (2019-07-13)

Bug Fixes

  • package: add missing dependency "make-error" (d8c8948)
  • security: upgrade dependencies to fix CVE-2018-16469 (10dc113)

1.0.0 (2018-10-13)

Bug Fixes

  • sourcemaps: use inline sourcemaps for tests (db5f6d4)