Skip to content

konata33/auto-export

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published