Cleanup build containing map files after debugging is done

This commit is contained in:
Narendranath Gogineni
2024-09-12 10:36:01 +05:30
parent f3713105a7
commit 3f24b63a89
2 changed files with 21 additions and 2 deletions
+2 -1
View File
@@ -35,7 +35,8 @@
"skipFiles": ["<node_internals>/**"],
"preLaunchTask": "npx tsc",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
"internalConsoleOptions": "neverOpen",
"postDebugTask": "cleanup build"
}
]
}
+19 -1
View File
@@ -7,12 +7,30 @@
"type": "shell",
"label": "npx tsc",
"command": "npx",
"args": ["tsc"],
"args": [
"tsc",
"--sourcemap",
"true",
"--outDir",
"${workspaceFolder}/build"
],
"problemMatcher": ["$tsc"],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"type": "shell",
"label": "cleanup build",
"command": "rm",
"args": ["-rf", "${workspaceFolder}/build"],
"problemMatcher": [],
"group": "build",
"presentation": {
"reveal": "always",
"panel": "new"
}
}
]
}