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:
11
build.ts
11
build.ts
@@ -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
|
||||
})
|
||||
],
|
||||
});
|
||||
|
Reference in New Issue
Block a user