juandl/rollup-plugin-tsc-generator(新しいタブで開きます)
主要言語: TypeScript
Rollup plugin to generate typescript declarations using tsc native
- star 数
- 2
- watcher 数
- 1
- fork 数
- 0
- issue 数
- 0
- 最終更新
- 2024/07/24
主要言語: TypeScript
Rollup plugin to generate typescript declarations using tsc native
A Rollup plugin designed to generate TypeScript types using the native tsc program. This plugin aims to improve performance by leveraging TypeScript's built-in type-checking and declaration file generation capabilities.
I was frustrated with the slow performance and lack of type-checking in existing plugins that generate TypeScript types. So, I created this plugin, which uses the native tsc (TypeScript) compiler and includes type-checking functionality.
You can install the plugin via npm:
npm install rollup-plugin-tsc-generator --save-dev
To use this plugin with Rollup, add it to your Rollup configuration:
import {tscGenerator} from 'rollup-plugin-tsc-generator'; export default { input: 'src/index.ts', output: { dir: 'dist', format: 'esm', }, plugins: [ tscGenerator({ dist: './dist', }), ], };
The tscGenerator function accepts a configuration object with the following options:
type tscGenerator = { dist?: string; // The folder where TypeScript declaration files will be generated. }