Rollup plugin (v1.3.0, stable) that applies chmod 755 to output files, making them executable. Designed to work alongside rollup-plugin-preserve-shebang for CLI scripts. Unlike older plugins like rollup-plugin-chmod, it correctly handles multiple outputs per bundle and uses Rollup's generateBundle hook. Minimal dependencies; requires Rollup >=1.0.0. Release cadence is low; last update 2022. Key differentiator: no bugs when used with multiple outputs or code splitting.
npm install rollup-plugin-executable-outputVerified import paths — ran on the pinned version, not inferred.
Minimal Rollup config making a CLI bundle executable, with shebang preservation.
Use a dedicated chmod utility or post-build script for external files.
Order plugins so executable() is last among those that modify output.
Use only 'output.file' or consider 'rollup-plugin-chmod' for directories.
Pin Rollup to version 3 or test compatibility.
Use Rollup 3.x or switch to 'rollup-plugin-chmod' which may have been updated.
Use 'import executable from ...'
Use 'output.file' or avoid using this plugin with directory output.
No dependency data recorded yet.