Skip to content

Why is local compilation preferred to pre-built binaries in the check.js script? #4497

@Chocobozzz

Description

@Chocobozzz

Hi,

First, thank you for this very useful library and for maintaining it.

I'm the maintainer of an open source node application, PeerTube, that will use sharp to manipulate images. Sysadmins of this node application will use pnpm to install PeerTube dependencies, and so sharp dependency.

I understand I can add sharp to ignoredBuiltDependencies in pnpm-workspace.yaml to skip check.js script. But it will cause problems on systems that don't have sharp prebuilt binaries (like FreeBSD).

So I'd rather add sharp to onlyBuiltDependencies, but it seems check.js prefer to compile sharp instead of using prebuilt binaries (if available). Can you explain this choice? I'd prefer using prebuilt binaries if available, to prevent compilation errors and have a faster pnpm install.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions