{"library":"rollup-plugin-resolve-shebang","title":"rollup-plugin-resolve-shebang","description":"A Rollup plugin that recognizes and preserves shebang (#!) lines in entry files, ensuring they remain at the top of the bundled output. Version 1.0.1 is current; ESM-only, requires Node.js >=18 or >=20, and Rollup >=4. Unlike alternatives that may strip or misplace shebangs, this plugin correctly retains them for CLI tools. Ships TypeScript types and has a minimal footprint.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-resolve-shebang"],"cli":null},"imports":["import { resolveShebang } from 'rollup-plugin-resolve-shebang'","import resolveShebangPlugin from 'rollup-plugin-resolve-shebang'","import type { resolveShebang } from 'rollup-plugin-resolve-shebang'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { resolveShebang } from 'rollup-plugin-resolve-shebang';\n\nexport default {\n  input: 'src/cli.js',\n  output: {\n    file: 'dist/cli.js',\n    format: 'esm',\n  },\n  plugins: [resolveShebang()],\n};","lang":"typescript","description":"Configures Rollup to preserve shebang line from src/cli.js into the output bundle.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}