@wyze/rio ·
A utility to compile Node modules.
Installation
Yarn
$ yarn add --dev @wyze/rio
npm
$ npm install --save-dev @wyze/rio
Usage
$ rio --help
Usage
$ rio [options] <input>
Options
--banner, -b Add banner to top of output file
--binary Pass good defaults for binary files
--externals, -e Add external files that shouldn't be bundled
--format, -f Output file format (esm, umd, etc.)
--output, -o Output file
Examples
$ rio -o out.js in.ts
$ rio -o out.js -f esm in.ts
$ rio -o out.js -e chalk,debug in.ts
$ rio -o out.js -b '#!/usr/bin/env node' in.ts
$ rio --binary in.ts
--binary Flag
This will make the following changes:
- Automatically include all package dependencies as externals
- Set
banner
option to:#!/usr/bin/env node
- Set
output
option to:bin/index.js
Change Log
v1.4.0 (2020-03-30)
License
MIT © Neil Kistner