Removed redundant instructions in the README and added a more detailed example. Changed the project's license from MIT to AGPL-3.0-or-later for stronger copyleft and network service provisions. Adjusted logger export and declarations to follow clean coding practices. Upgraded build scripts and distribution settings in package.json for improved module handling and output integrity. Remove pnpm-lock.yaml.
13 lines
339 B
TypeScript
13 lines
339 B
TypeScript
import isolatedDecl from 'bun-plugin-isolated-decl';
|
|
|
|
// handles building the types for the library
|
|
await Bun.build({
|
|
entrypoints: ['./src/index.ts', './src/types.ts'],
|
|
outdir: './dist',
|
|
target: 'node',
|
|
plugins: [
|
|
isolatedDecl({
|
|
forceGenerate: true, // Generate declaration files even if there are errors
|
|
})
|
|
],
|
|
}); |