Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 939 Bytes

README.md

File metadata and controls

44 lines (34 loc) · 939 Bytes

Features

  • ⚡️ auto export module and function
  • ✨ Execute in the specified directory

demo

image

Installation

npm install ts-auto-export -D  
//or
npm install --save-dev ts-auto-export

Usage

  • 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
  // for example : autoExport({fileName:"type",filePath:"package/core"}
})

Config

field Description Type Default
filePath site declared file name string src
fileName site watch specified directory string index

Future

Framework Support

  • vite
  • webpack
  • with out vite/webpack