Created
April 21, 2025 19:31
-
-
Save matipojo/e214fa13deb4e8c43dad839584bd810e to your computer and use it in GitHub Desktop.
Allow opt-out from Cursor autorun tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "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