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', target: 'node', splitting: true, plugins: [ isolatedDecl({ forceGenerate: true, // Generate declaration files even if there are errors }) ], });