Generate .d.ts
files using TypeScript.
$ yarn add --dev @start/plugin-lib-typescript-generate
# or
$ npm install --save-dev @start/plugin-lib-typescript-generate
typescriptGenerate(outDir: string, options?: CompilerOptions)
Default:
{
allowSyntheticDefaultImports: true,
lib: 'esnext',
moduleResolution: 'node'
}
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/')
)