Add Bun support and improve build process

Updated project to use Bun runtime, including changes to build and development scripts, plugin additions, and configuration updates in tsconfig.json and package.json. Enhanced README documentation and migrated source files to TypeScript.
This commit is contained in:
2024-11-21 14:28:26 -05:00
parent 5082a3398f
commit 2fb1568d97
6 changed files with 112 additions and 33 deletions

View File

@@ -1,5 +1,12 @@
import isolatedDecl from 'bun-plugin-isolated-decl';
await Bun.build({
entrypoints: ['./src/cli.ts'],
entrypoints: ['./src/cli.ts', './src/index.ts'],
outdir: './dist',
target: 'node',
});
plugins: [
isolatedDecl({
forceGenerate: true, // Generate declaration files even if there are errors
})
],
});