Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 592 Bytes

README.md

File metadata and controls

45 lines (30 loc) · 592 Bytes

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

--log-errors