Skip to content

GooseOb/bun-build-userscript

Repository files navigation

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

About

NPM script for building index.ts and header.txt into one js-file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published