23 lines
488 B
TypeScript
23 lines
488 B
TypeScript
import isolatedDecl from 'bun-plugin-isolated-decl';
|
|
|
|
// handles building the library
|
|
await Bun.build({
|
|
entrypoints: [
|
|
"src/cli.ts",
|
|
"src/fileExclusions.ts",
|
|
"src/fileTypeExclusions.ts",
|
|
"src/index.ts",
|
|
"src/MarkdownGenerator.ts",
|
|
"src/TokenCleaner.ts"
|
|
],
|
|
outdir: './dist',
|
|
minify: true,
|
|
target: 'node',
|
|
splitting: true,
|
|
plugins: [
|
|
isolatedDecl({
|
|
forceGenerate: true, // Generate declaration files even if there are errors
|
|
})
|
|
],
|
|
});
|