Skip to content

Commit

Permalink
feat: ✨ add a Fullname field to Build-PackageData for #49
Browse files Browse the repository at this point in the history
  • Loading branch information
anonhostpi committed Jan 18, 2024
1 parent e861e45 commit c118580
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Import-Package/src/Build-PackageData.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ function Build-PackageData {

$Defaults = @{
"Name" = "Undefined"
"Fullname" = "Undefined"
"Version" = "Undefined"
"Source" = "Undefined"
"CachePath" = "Undefined"
Expand Down
2 changes: 2 additions & 0 deletions Import-Package/src/Resolve-CachedPackage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,8 @@ function Resolve-CachedPackage {
}
}

$Options.Fullname = $Options.Source | Split-Path -LeafBase

If( [string]::IsNullOrWhiteSpace( $Options.NativePath ) ){
$Options.NativePath = & {
<#
Expand Down

0 comments on commit c118580

Please sign in to comment.