
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
rollup-plugin-shell
Advanced tools
Execute shell commands in Rollup.
npm i rollup-plugin-shell --save-dev
| Name | Type | Default | Description |
|---|---|---|---|
| commands | array<string> | undefined | An array of shell commands that will be executed. This is required, since no commands would run. |
| hook | string | generateBundle | Any Rollup hook - https://rollupjs.org/guide/en/#build-hooks. |
| sync | boolean | false | Spawns the child process asynchronously, without blocking the event loop. Sync true blocks the event loop until the spawned process either exits or is terminated. |
import execute from "rollup-plugin-shell";
export default {
input: "src/index.js",
output: {
file: "dist/index.js",
},
plugins: [
// Run mulitple commands with a specific rollup hook
execute({ commands: ["eslint src"], hook: "buildStart" }),
// Run multiple commands with the default rollup hook
execute([
"copyfiles dist/**/* example/package -u 1",
"live-server --watch=example --open=example",
]),
// Run a single command with the default rollup hook
execute("npm run test"),
],
};
FAQs
Execute shell commands in Rollup.
The npm package rollup-plugin-shell receives a total of 2,665 weekly downloads. As such, rollup-plugin-shell popularity was classified as popular.
We found that rollup-plugin-shell demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.