Vite plugin (v1.0.1) that generates JSON metadata for custom Excel functions from TypeScript source files, intended for Office Add-ins development. It scans a given input file for JSDoc-annotated functions and outputs a metadata JSON file referencing function names, descriptions, and parameters. The plugin is designed to integrate into the Vite build pipeline, automating metadata generation that would otherwise require manual maintenance. Differentiators: dedicated to Excel custom functions, leverages TypeScript type definitions, and provides a simple plugin interface for modern Vite projects. Release cadence is currently low; no breaking changes known.
npm install vite-plugin-custom-functions-metadataVerified import paths — ran on the pinned version, not inferred.
Configures the Vite plugin to generate Excel custom functions metadata from a TypeScript input file.
Create a barrel file that re-exports all custom functions from separate modules.
Do not manually edit the output file; treat it as a build artifact.
Add JSDoc tags like @customfunction, @param, @returns to your functions.
Pin to version 1.x and test upgrades.
Install with 'npm install vite-plugin-custom-functions-metadata --save-dev' and use import syntax.
Use 'import customFunctionsMetadataPlugin from ...' instead of destructured import.