7 ms·
This used to be more common but the pattern these days is to have the binaries split into optionalDependencies which declare their supported CPU etc, one per su
by bakkoting 3mo ago
This used to be more common but the pattern these days is to have the binaries split into optionalDependencies which declare their supported CPU etc, one per supported platform. Then npm will install just the matching one (optionalDependencies that require a different platform aren't installed).
The fact that most of the ecosystem has moved to this pattern is a big part of why this change is now feasible.
- tuananh 3mo agothat's why. for those who want to read more about this, napi-rs support this natively https://napi.rs/docs/deep-dive/release https://napi.rs/docs/deep-dive/release