$rootPath = "$PSScriptRoot\.." $assetPath = "$rootPath\assets" $csPackagesPath = "$rootPath\cs_packages" $dlcPacksPath = "$rootPath\dlcpacks" $clientResourcesPath = "$rootPath\..\..\client_packages" Remove-Item -Path "$clientResourcesPath\*" -Recurse -Force $exclude = @('*.ts', 'package.json', 'package-lock.json', 'tsconfig.json', '*.csproj', 'Scripts', 'node_modules', 'bin', 'obj') Copy-Item "$rootPath\*" $clientResourcesPath -Recurse -Exclude $exclude