@obuild/plugin-tsgo-dts
v0.0.2
Published
tsgo declarations plugin for obuild
Readme
📦 @obuild/plugin-tsgo-dts 😯
TS declarations emit for obuild.
This plugin uses TypeScript's tsgo to generate declaration files (.d.mts and .d.ts) for your TypeScript code. It is designed to work seamlessly with the obuild build system, allowing you to easily generate type definitions for your projects.
Usage
Import the plugin in your build configuration and add it to the plugins array. You can also configure it with options.
import { defineBuildConfig } from "obuild/config";
import { tsgoDts } from "@obuild/plugin-tsgo-dts";
import { oxcTransform } from "@obuild/plugin-oxc-transform";
export default defineBuildConfig({
entries: [
{
type: "transform",
input: "./src/runtime/",
outDir: "./dist/runtime/",
plugins: [
tsgoDts({
// Configuration options
}),
oxcTransform(), // Optional: Use oxc-transform to transform the TS(X) files to JS
],
},
],
});Options
plugin-tsgo-dts uses the plugin-tsc-dts internally, you can use the same options as described in the plugin-tsc-dts documentation.
License
💛 Released under the MIT license.
