Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Latest commit

 

History

History
49 lines (35 loc) · 1.63 KB

File metadata and controls

49 lines (35 loc) · 1.63 KB

🏭 plugin-lib-typescript-generate

npm linux windows coverage deps

Generate .d.ts files using TypeScript.

Install

$ yarn add --dev @start/plugin-lib-typescript-generate
# or
$ npm install --save-dev @start/plugin-lib-typescript-generate

Usage

Signature

typescriptGenerate(outDir: string, options?: CompilerOptions)

options

TypeScript Compiler options.

Default:

{
  allowSyntheticDefaultImports: true,
  lib: 'esnext',
  moduleResolution: 'node'
}

Example

import sequence from '@start/plugin-sequence'
import find from '@start/plugin-find'
import typescriptGenerate from '@start/plugin-lib-typescript-generate'

export const task = () =>
  sequence(
    find('src/index.ts'),
    typescriptGenerate('build/')
  )