msgraph-sdk-powershell icon indicating copy to clipboard operation
msgraph-sdk-powershell copied to clipboard

Compress MgCommandMetadata.json to reduce whitespace/package size

Open sean-r-williams opened this issue 5 months ago • 0 comments

Fixes #3345.

Changes proposed in this pull request

Adds -Compress to ConvertTo-Json calls in post-generation tools:

  • AuthModuleMetadata
  • NewCommandMetadata

This JSON file has nearly 6MB of unnecessary whitespace, constituting about 13.9% of the module's unpacked size.

Certainly welcome to feedback on this PR - these files don't appear to be getting auto-updated by CI, and I was looking for specifically the MgCommandMetadata.json filename. I'm not sure if there are other AutoREST directives/generator tools that need updating as well.

sean-r-williams avatar Jun 18 '25 02:06 sean-r-williams