Removed CLI entrypoint from main build file and created a separate build script for it. Adjusted corresponding configurations in `package.json` to reflect these changes, including updating version from 1.0.14 to 1.0.21.
14 lines
308 B
TypeScript
14 lines
308 B
TypeScript
import isolatedDecl from 'bun-plugin-isolated-decl';
|
|
|
|
// handles building the library
|
|
await Bun.build({
|
|
entrypoints: ['./src/index.ts'],
|
|
outdir: './dist',
|
|
target: 'node',
|
|
plugins: [
|
|
isolatedDecl({
|
|
forceGenerate: true, // Generate declaration files even if there are errors
|
|
})
|
|
],
|
|
});
|