fix: PackageMetadataVersion deps (#21017)

Set DevDependencies, PeerDependencies & OptionalDependencies in npm package metadatas

Fix  #21013
This commit is contained in:
José Carlos 2022-09-03 00:00:18 +02:00 committed by GitHub
parent 2dbed4bd97
commit b8818a1c68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 9 deletions

View File

@ -63,6 +63,9 @@ func createPackageMetadataVersion(registryURL string, pd *packages_model.Package
Homepage: metadata.ProjectURL,
License: metadata.License,
Dependencies: metadata.Dependencies,
DevDependencies: metadata.DevelopmentDependencies,
PeerDependencies: metadata.PeerDependencies,
OptionalDependencies: metadata.OptionalDependencies,
Readme: metadata.Readme,
Dist: npm_module.PackageDistribution{
Shasum: pd.Files[0].Blob.HashSHA1,