1.0.9 • Published 4 months ago

@skyfox2000/vite-plugin-auto-import-dts v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

vite-plugin-auto-import-dts

A Vite plugin to auto-import and manage TypeScript declarations.

Installation

npm install @skyfox2000/vite-plugin-auto-import-dts --save-dev

Usage

// vite.config.ts
import autoImportDTS from "@skyfox2000/vite-plugin-auto-import-dts";

export default {
   plugins: [
      autoImportDTS({
         path: "./src/views",
         target: "./src/types/global.d.ts"
      })
   ]
};

Options

This plugin accepts the following configuration options:

OptionTypeDefaultDescription
pathstring'./src/views'The directory or directories to scan for .d.ts files. You can specify a single directory or an array of paths.
targetstring'./src/types/global.d.ts'The target file where the generated global type declarations will be stored. If the target path does not exist, an error will be thrown. Make sure to manually create the necessary directories.
1.0.9

4 months ago

1.0.8

4 months ago

1.0.7

4 months ago

1.0.6

4 months ago

1.0.5

4 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago