ts-auto-export
v0.0.5
Published
autoExport typescript code
Readme
Features
demo

Installation
pnpm add ts-auto-export -D
//or
npm install --save-dev ts-auto-exportUsage
vite.confit.ts
import { defineConfig } from 'vite'
import autoExport from 'ts-auto-export'
export default defineConfig({
...
plugins:[autoExport()] //default watch `src` directory then generate index.ts file
})Config
| field | Description | Type | Default | | :-------:| :---------: | :----: | :------: | | filePath | site declared file name | string | src | | fileName | site watch specified directory | string | index |
Future
Framework Support
- [x] vite
- [ ] webpack
- [ ] with out vite/webpack
