A VS Code extension that allows you to run nested scripts from package.json files using hover actions. Perfect for organizing complex build pipelines, testing suites, and development workflows.
- Hover-to-Run: Hover over script names in
package.jsonto see a run button - Nested Script Support: Organize scripts in nested objects for better categorization
- Progress Indication: Visual feedback during script execution
- Cancellable Execution: Cancel running scripts if needed
- Add a
groupedScriptsfield to yourpackage.json:
{
"name": "my-project",
"version": "1.0.0",
"groupedScripts": {
"development": {
"server": {
"start": "nodemon server.js",
"debug": "nodemon --inspect server.js"
},
"client": {
"start": "react-scripts start",
"build": "react-scripts build"
}
},
"testing": {
"unit": "jest",
"e2e": "cypress run"
},
"utilities": {
"format": "prettier --write .",
"lint": "eslint . --fix"
}
}
}- Open your
package.jsonfile in VS Code - Hover over any script name (the final key with a string value)
- Click the "
▶️ Run Script" button that appears in the hover tooltip
The extension:
- Detects
package.jsonfiles with agroupedScriptsfield - Parses the nested object structure
- Provides hover tooltips for leaf nodes (actual script commands)
- Executes scripts directly in the workspace directory
- VS Code 1.104.0 or higher
This extension doesn't contribute any VS Code settings currently.
- The extension only works with
package.jsonfiles named exactly "package.json"
Enjoy!