bun-build-userscript

1.4.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i bun-build-userscript

Weekly Downloads

2

Version

1.4.0

License

none

Unpacked Size

4.94 kB

Total Files

5

Last publish

Collaborators

  • gooseob