Workspace Script Runner
Run npm scripts with intuitive UI in VS Code! 🚀
✨ Features
- 📦 Multi-root workspace support - Works with multiple projects simultaneously
- 🔍 Auto-detect package manager - npm, yarn, pnpm, bun
- ⚡ One-click run - Click to run any script instantly
- 🎨 Beautiful TreeView - See all projects and scripts at a glance
- 🔄 Running state indicator - Know which scripts are currently running
- 🛑 Easy stop/restart - Stop or restart scripts with one click
📸 Screenshot
TreeView showing projects with package manager icons and scripts
🚀 Usage
- Open a folder/workspace with
package.json
- Look for "Scripts Runner" in Explorer sidebar
- Click on any script to run it!
⚙️ Settings
{
"scriptsRunner.defaultPackageManager": "auto",
"scriptsRunner.workspacePackageManager": {
"project-a": "pnpm",
"project-b": "yarn"
}
}
| Setting |
Description |
Default |
defaultPackageManager |
Default PM when auto-detection fails |
auto |
workspacePackageManager |
Override PM for specific projects |
{} |
🎯 Commands
| Command |
Description |
Scripts Runner: Run Script |
Run selected script |
Scripts Runner: Stop Script |
Stop running script |
Scripts Runner: Restart Script |
Restart script |
Scripts Runner: Change Package Manager |
Override package manager |
Scripts Runner: Refresh |
Refresh scripts list |
🛠️ Development
npm install
npm run compile
# Press F5 to launch Extension Development Host
📄 License
MIT © ducdev2k1
| |