nobu121/dsh-npm-runner
Lists the npm scripts of the current workspace and runs any of them in the background, with live output and a Stop.
Puts the workspace's npm scripts one click away inside a DSH session, grouped per package like an editor's script view, with the folded shape remembered per workspace and nothing shown at all when there is nothing to show. A run starts in the background with live output and elapsed time, and Stop reaps the whole process tree rather than the immediate child. There is a coordination detail worth noting: runs also register with DSH's own background-job registry so the agent can read them with the job tools, and stopping a run from the panel marks it accounted for so the harness does not later inject a background-job-finished notice about a stop you asked for yourself.
Install
dsh plugin --profile web add -w dsh-npm-runnerThe -w is required and the README says why: the profile directory is a pnpm workspace root and pnpm refuses an add there without it, so this is not a flag to trim. dsh plugin --profile web update -w dsh-npm-runner and the remove form follow the same shape, and the git form adds -w before github:. Restart DSH afterwards, since a newly added bundle is picked up at profile boot rather than by a page refresh.
Compatibility
DSH 0.1.5-rc.1 or newer and Node.js 20 or newer. Script discovery is deliberately shallow: the workspace root manifest plus the packages its workspaces field declares or its immediate subdirectories, never a walk of node_modules, which is what keeps the list fast and readable. Each package runs under its own package manager, chosen from the lockfiles present, in its own directory. maxPackages and maxJobs bound the scan and the retained runs.
Details
- Repo: nobu121/dsh-npm-runner
- Category: Development & Runtime
- Stars: 0
- Version: 0.1.1 (npm)
Alternatives
wulun811/dsh-plugin-vet · wpeng77/dsh-llm-trace · loongsuite/dsh-plugin