rollup-plugin-bin
v1.0.0
Published
🐴 rollup plugin inject execute header
Downloads
5,912
Maintainers
Readme
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...
),
],
}