mirror of
https://github.com/Microsoft/vscode
synced 2024-11-05 18:29:38 +00:00
tfs: yarn cache dir windows
This commit is contained in:
parent
5f46e5c99f
commit
fbed34f2f6
2 changed files with 4 additions and 0 deletions
|
@ -6,6 +6,9 @@ if [ -n "$AGENT_WORKFOLDER" ]
|
|||
then
|
||||
export npm_config_cache="$AGENT_WORKFOLDER/npm-cache"
|
||||
echo "Using npm cache: $npm_config_cache"
|
||||
|
||||
export YARN_CACHE_FOLDER="$AGENT_WORKFOLDER/yarn-cache"
|
||||
echo "Using yarn cache: $YARN_CACHE_FOLDER"
|
||||
fi
|
||||
|
||||
SUMMARY="Task;Duration"$'\n'
|
||||
|
|
|
@ -6,6 +6,7 @@ $env:HOME=$env:USERPROFILE
|
|||
if (Test-Path env:AGENT_WORKFOLDER) {
|
||||
$env:HOME="${env:AGENT_WORKFOLDER}\home"
|
||||
$env:npm_config_cache="${env:HOME}\npm-cache"
|
||||
$env:YARN_CACHE_FOLDER="${env:HOME}\yarn-cache"
|
||||
$env:npm_config_devdir="${env:HOME}\npm-devdir"
|
||||
New-Item -Path "$env:HOME" -Type directory -Force | out-null
|
||||
New-Item -Path "$env:npm_config_cache" -Type directory -Force | out-null
|
||||
|
|
Loading…
Reference in a new issue