1.0.0 • Published 4 years ago

rollup-plugin-bin v1.0.0

Weekly downloads
17
License
ISC
Repository
github
Last release
4 years ago

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...
    ),
  ],
}