A Rollup plugin that runs an npm run script after the bundle is written, typically used to restart a dev server or trigger post-build actions. Current version: 1.0.2, stable, low update frequency. Differentiator: simple, lightweight, leverages npm scripts rather than full process managers. Commonly used in development workflows with watch mode.
npm install rollup-plugin-npm-runVerified import paths — ran on the pinned version, not inferred.
Basic Rollup config that runs `npm run start` after each bundle write.
Consider using `npm-run-all` or `concurrently` for background processes.
Use `options.args` for flags; to chain commands, create an npm script that chains.
Add error handling by listening to the `error` event on the child process (not provided by plugin).
Use `import npmRun from 'rollup-plugin-npm-run'` instead of `import { npmRun } from ...`Add a "start" script to your package.json or use an existing script name.
Ensure npm is installed and available in PATH. Alternatively, use absolute path to npm.
No dependency data recorded yet.