bun-build-userscript
v1.4.0
Published
Building index.ts and header.txt into one js-file via bun
Downloads
118
Readme
Building index.ts
and header.txt
into one js-file
Replaces {version}
in header.txt
by version
from package.json
.
Usage
# watch mode
bunx bun-build-userscript
# build
bunx bun-build-userscript --build
or
bun add --global bun-build-userscript
# watch mode
bun build-userscript
# build
bun build-userscript --build
Options
--out
Specify the output path
bun build-userscript --out index.js
--cfg
Pass custom bun config
bun build-userscript --cfg config.ts
Should be exported by export default