Skip to content

Both gnu and musl core distributions installed for Ubuntu Linux #3652

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Describe the bug

After npm i @swc/jest in a project, there are two core distributions available in node_modules:

$ du -sh node_modules/@swc/*
444K    node_modules/@swc/core
74M     node_modules/@swc/core-linux-x64-gnu
78M     node_modules/@swc/core-linux-x64-musl
24K     node_modules/@swc/jest

Input code

npm i @swc/jest

Config

n/a

Playground link

No response

Expected behavior

Both of these are >70M in size. Ideally only one would be installed at a time.

Actual behavior

Both packages have the same system dependencies listed in their package.json files:

{
  // ...
  "os": [
    "linux"
  ],
  "cpu": [
    "x64"
  ],
  // ...
}

...and so both get installed on Linux x64 systems.

Version

1.2.143

Additional context

I'm not familiar enough with npm/node OS & CPU identifiers to know whether a more granular description could be used. If there is, I would love to send a PR to fix this. 😄

If not, it might be the case that npm/rfcs#519 blocks a real resolution?

Context: typescript-eslint/tslint-to-eslint-config#1367. WSL 2.0 in an Ubuntu drive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions