rollup-plugin-bin

🐴 rollup plugin inject execute header


Keywords
rollup plugin, shell type, cli
License
ISC
Install
npm install rollup-plugin-bin@1.0.0

Documentation

rollup-plugin-bin

🐴 Inject the executable script type rollup plugin in the header

#!/usr/bin/env node

const ts = require('rollup-plugin-typescript2')
const bin = require('rollup-plugin-bin')

module.exports = {
  input: './src/index.ts',
  output: {
    file: './bin/outfile.js',
    format: 'cjs',
  },
  plugins: [
    // other plugins...
    bin(
      // you can customize it here...
    ),
  ],
}