Skip to content

Commit 18aa785

Browse files
authored
[engsys] exclude .env and launch.json files when rush reset-workspace (Azure#20737)
local .env files contain useful information. We don't like to lose them without realizing that `rush reset-workspace` would remove them. If we want we can always run `git clean` directly.
1 parent 69e4dd9 commit 18aa785

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/config/rush/command-line.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
"name": "reset-workspace",
186186
"summary": "Reset your workspace - !!DANGER!! unlink dependencies, purge downloaded node_modules, and remove all untracked files and directories",
187187
"safeForSimultaneousRushProcesses": true,
188-
"shellCommand": "rush unlink && echo \"\nStarting \\\"git clean\\\"\" && git clean -dfx && rush purge"
188+
"shellCommand": "rush unlink && echo \"\nStarting \\\"git clean\\\"\" && git clean -dfx -e *.env -e launch.json && rush purge"
189189
},
190190
{
191191
"commandKind": "global",

0 commit comments

Comments
 (0)