Skip to content

[Optimization] Split prebuilds to OS specific packages #602

Closed
@belozer

Description

@belozer

Currently, the pact-core package includes binary versions of the server for all platforms. And the package weighs 110 MB.

CI does not require all binary versions, only linux-x64 is needed... But instead, each CI launch downloads an extra 80 MB, which also affects the speed of passing the tests.

It is necessary to create your own package for each platform, as optionalDepencies with restrictions on OS and Arch.

Example:
https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/package.json#L52-L61

And platform specific package:
https://github.com/biomejs/biome/blob/main/packages/%40biomejs/cli-linux-x64-musl/package.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementIndicates new feature requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions