Installation
@basmilius/tools is intended for use as a development dependency in library packages.
shell
bun add -d @basmilius/toolsshell
npm install --save-dev @basmilius/toolsshell
pnpm add -D @basmilius/toolsshell
yarn add -D @basmilius/toolsRequirements
- Bun
>= 1.3.11— the build helpers wrapBun.build. - A
tsconfig.jsonwithisolatedDeclarationsenabled if you usedts.
Recommended scripts
Add a build.ts to your package and a script that runs it:
json
{
"scripts": {
"build": "tsgo --noEmit && bun build.ts"
}
}The tsgo --noEmit step performs a strict type check first; the actual emit is handled by Bun.build plus dts() for declaration files.