@yohs/esbuild-utils
v0.2.5
Published
Reusable esbuild plugins, runners, and CLI helpers
Readme
@yohs/esbuild-utils
Reusable esbuild helpers that make it easier to bootstrap local dev flows:
- Opinionated runners that keep long-lived processes in sync with esbuild outputs
- Quality-of-life plugins (clear console, custom logging, persistent spinner)
Quick start
pnpm add -D @yohs/esbuild-utilsimport { clearConsolePlugin, runFunctionsPlugin } from '@yohs/esbuild-utils'
export default {
plugins: [
clearConsolePlugin,
runFunctionsPlugin({
target: 'handler',
signatureType: 'cloudevent',
port: 5012,
}),
],
}ℹ️ Console / CLI helpers (
animation,args-serialize,run-npx) now live in@yohs/node-utilsand are no longer re-exported from this package. Import them directly from@yohs/node-utils/*if you still need them alongside these plugins.
⚠️ The
runFunctionsPlugindepends on@yohs/gcp-utilsfor its Functions Framework runner. Install it alongside this package when you need that plugin.
Available entry-points
@yohs/esbuild-utils– re-exports everything in this package@yohs/esbuild-utils/plugins– bundled access to every plugin helper
Scripts
pnpm build– emits ESM modules and d.ts files via tsdownpnpm test– runs the vitest suitepnpm lint/pnpm typecheck– local validation helpers
