esbuild-plugin-rttist
Version:
RTTIST plugin adding support for advanced reflection features to esbuild
33 lines (30 loc) • 1.11 kB
TypeScript
import * as esbuild from 'esbuild';
type RttistPluginOptions = {
packageInfo: {
/**
* Name of the package (NPM) used to index type and module identifiers in the metadata.
*/
name: string;
/**
* Root directory of the package, where the `package.json` is located.
*/
rootDir: string;
};
/**
* Project root directory where tsconfig and rttist config files are located.
*/
projectRoot: string;
/**
* Use RTTIST to transpile TypeScript files to JavaScript (currently using OXC).
* @deprecated Marking with deprecated just to highlight it, but it is just not implemented yet.
*/
handleTranspilation?: boolean;
/**
* Directory where TypeScript files are located.
* This is used to resolve relative paths in the metadata.
* This is determined automatically from the `tsconfig.json` file, but can be overridden.
*/
tsRootDir?: string;
};
declare function rttistPlugin(pluginOptions: RttistPluginOptions): esbuild.Plugin;
export { type RttistPluginOptions, rttistPlugin };