#$rootPath = "$PSScriptRoot\.." #$assetPath = "$rootPath\assets" #$csPackagesPath = "$rootPath\cs_packages" #$dlcPacksPath = "$rootPath\dlcpacks" #$clientResourcesPath = "$rootPath\..\..\client_packages" #$sourceDlcPacksPath = "$rootPath\..\..\source_dlcpacks" #Remove-Item -Path "$clientResourcesPath\*" -Recurse -Force #$exclude = @('*.ts', 'package.json', 'package-lock.json', 'tsconfig.json', '*.csproj', 'Scripts', 'node_modules', 'bin', 'obj', 'dlcpacks') #if(!(Test-Path $sourceDlcPacksPath)) #{ # New-Item -Type Directory $sourceDlcPacksPath #} #Remove-Item -Path "$sourceDlcPacksPath\*" -Recurse -Force #Copy-Item "$rootPath\*" $clientResourcesPath -Recurse -Exclude $exclude #Copy-Item "$dlcPacksPath\*" $sourceDlcPacksPath -Recurse -Force