rollup-plugin-bin

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i rollup-plugin-bin

Weekly Downloads

1,495

Version

1.0.0

License

ISC

Unpacked Size

1.13 kB

Total Files

3

Last publish

Collaborators

  • guoxiaozhuang4