Skip to content

Commit

Permalink
Merge pull request #243 from bdovaz/feature/set-package-display-name
Browse files Browse the repository at this point in the history
Fill in the displayName field in Unity's package.json file
  • Loading branch information
bdovaz authored Sep 12, 2023
2 parents bd07fff + 944ff89 commit 6b3784b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/UnityNuGet/RegistryCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1078,6 +1078,7 @@ private static UnityPackage CreateUnityPackage(NpmPackageInfo npmPackageInfo, Np
var unityPackage = new UnityPackage
{
Name = npmPackageInfo.Name,
DisplayName = npmPackageVersion.DisplayName,
Version = npmPackageVersion.Version,
Description = npmPackageInfo.Description,
Unity = npmPackageVersion.Unity
Expand Down
3 changes: 3 additions & 0 deletions src/UnityNuGet/UnityPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ public UnityPackage()
[JsonProperty("name")]
public string? Name { get; set; }

[JsonProperty("displayName")]
public string? DisplayName { get; set; }

[JsonProperty("version")]
public string? Version { get; set; }

Expand Down

0 comments on commit 6b3784b

Please sign in to comment.