Skip to content

Instantly share code, notes, and snippets.

@matipojo
Created April 21, 2025 19:31
Show Gist options
  • Select an option

  • Save matipojo/e214fa13deb4e8c43dad839584bd810e to your computer and use it in GitHub Desktop.

Select an option

Save matipojo/e214fa13deb4e8c43dad839584bd810e to your computer and use it in GitHub Desktop.
Allow opt-out from Cursor autorun tasks
{
"version": "2.0.0",
"tasks": [
{
"label": "Check Auto Run",
"type": "shell",
"command": "if [ \"${CURSOR_AUTO_RUN_TASKS:-true}\" = \"false\" ]; then echo '⚠️ Auto-run tasks are disabled. To enable them, set CURSOR_AUTO_RUN_TASKS=true in your environment.'; exit 1; fi",
},
{
"label": "npm:run:dev",
"dependsOn": ["Check Auto Run"],
"type": "npm",
"script": "dev",
"path": ".",
"isBackground": true,
"presentation": {
"group": "dev-servers",
"panel": "dedicated"
},
"runOptions": {
"runOn": "folderOpen"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment