rollup-plugin-preserve-shebang
1.0.1 • Public • Published rollup-plugin-preserve-shebang
Automatically preserve a shebang in your entry file.
If you're building CLI's with Rollup, this will fix your npm bin
being broken :)
Installation
npm i -D rollup-plugin-preserve-shebang
Usage
import shebang from 'rollup-plugin-preserve-shebang';
export default {
plugins: [
shebang()
]
}
shebang({
entry: path.resolve(process.cwd(), 'src/foo.js'),
shebang: '#!/usr/bin/env node'
})
License
MIT
Package Sidebar
Install
npm i rollup-plugin-preserve-shebang
Weekly Downloads