25 lines
836 B
PowerShell
25 lines
836 B
PowerShell
# Run this in PowerShell before development commands:
|
|
# . ./scripts/dev-shell.ps1
|
|
|
|
$commonScript = Join-Path $PSScriptRoot "script-common.ps1"
|
|
if (-not (Test-Path $commonScript)) {
|
|
throw "Missing helper script: $commonScript"
|
|
}
|
|
. $commonScript
|
|
|
|
$repoRoot = Resolve-JournalRepoRoot -StartPath $PSScriptRoot
|
|
|
|
# Clear dead proxy overrides and offline-only pip mode in current shell.
|
|
Clear-JournalProxyEnv
|
|
|
|
# Keep .NET artifacts local to repo to avoid restricted user-profile paths.
|
|
Initialize-JournalDotnetEnv -RepoRoot $repoRoot
|
|
|
|
# Keep pip artifacts local to repo.
|
|
Initialize-JournalPipEnv -RepoRoot $repoRoot
|
|
|
|
# Keep Hugging Face cache local and silence symlink-only warning on Windows.
|
|
Initialize-JournalHuggingFaceEnv -RepoRoot $repoRoot
|
|
|
|
Write-Host "Development shell initialized for repo-local dotnet/pip paths at: $repoRoot"
|