Skip to content

Add libc field to package.json #388

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 22, 2025
Merged

Add libc field to package.json #388

merged 1 commit into from
Jul 22, 2025

Conversation

ntkme
Copy link
Contributor

@ntkme ntkme commented Jul 22, 2025

This is a new feature in npm >=10: https://docs.npmjs.com/cli/v11/configuring-npm/package-json#libc

It allows us to install the dart linux binary for only the current libc (glibc or musl). On older npm <10, this key is simply ignored and both glibc and musl binaries will be installed like before.

The possible values for libc key is undocumented, but it appears to be defined and used at https://github.com/npm/npm-install-checks/blob/main/lib/current-env.js

@nex3
Copy link
Contributor

nex3 commented Jul 22, 2025

Oh nice! Thanks for noticing this.

@nex3 nex3 merged commit 13fe81b into sass:main Jul 22, 2025
17 checks passed
@ntkme ntkme deleted the libc branch July 22, 2025 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants