From da5b7b2c46a75ff4dcfd0f63ff2261bc33428605 Mon Sep 17 00:00:00 2001 From: Kevin Marquette Date: Tue, 16 Oct 2018 09:04:18 -0700 Subject: [PATCH] Add license file to the built module resolves #14 --- BuildTasks/Copy.Task.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BuildTasks/Copy.Task.ps1 b/BuildTasks/Copy.Task.ps1 index 9a43b8e..2daadd3 100644 --- a/BuildTasks/Copy.Task.ps1 +++ b/BuildTasks/Copy.Task.ps1 @@ -20,4 +20,10 @@ task Copy { 'Creating [.{0}]...' -f $directory.FullName.Replace($buildroot, '') Copy-Item -Path $directory.FullName -Destination $Destination -Recurse -Force } + + $license = Join-Path -Path $buildroot -ChildPath 'LICENSE' + if ( Test-Path -Path $license -PathType Leaf ) + { + Copy-Item -Path $license -Destination $Destination + } }