.dev/init_local_env.Notebook.ps1

Get-PackageSource

$projectRootDir = (Get-Item $PSScriptRoot).Parent.Parent.FullName
Write-Host "Project root dir: $($projectRootDir)"
$gitRoot = git rev-parse --show-toplevel
Write-Host "Git root dir: $($gitRoot)"
mkdir D:\NugetFeed
[Environment]::SetEnvironmentVariable("PowerShellModules", "C:\Users\xgenx\OneDrive\Documents2\PowerShell\Modules\", "User")
Copy-Item "$gitRoot/src/content/*.ps*1" $gitRoot
Remove-Item "$gitRoot/*.psd1"
Remove-Item "$gitRoot/*.psm1"



Test-ModuleManifest "D:\T3\Projects\Vertafore\Modules\RallyQuickToolsCli\src\content\RallyQuickToolsCli.psd1"
Register-PSRepository -Name Test_Nuget_Feed -SourceLocation D:\NugetFeed -PublishLocation D:\NugetFeed -InstallationPolicy Trusted

Publish-Module -Path D:\T3\Projects\Vertafore\Modules\RallyQuickToolsCli -Repository Test_Nuget_Feed -NuGetApiKey 'use real NuGetApiKey for real nuget server here'