a5fab84840
In Next.js [12.0.1](
https://packagephobia.com/result?p=next@12.0.1), musl support was added which caused linux to install both glibc and musl binaries.
This PR adds the `install` script to prevent installing unused binaries, reducing the install size by 47MB.
We originally thought this could be added to Node.js core and thus npm but [it was rejected](https://github.com/nodejs/node/pull/41338).
Note getReport() works on Node.js [`>=11.8.0`](https://nodejs.org/api/process.html#processreportgetreporterr) which is safe to use since Next.js requires [`"node": ">=12.22.0"`](265f71e225/packages/next/package.json (L280)
).
22 lines
342 B
JSON
22 lines
342 B
JSON
{
|
|
"name": "@next/swc-linux-x64-musl",
|
|
"version": "0.0.0",
|
|
"os": [
|
|
"linux"
|
|
],
|
|
"cpu": [
|
|
"x64"
|
|
],
|
|
"main": "next-swc.linux-x64-musl.node",
|
|
"files": [
|
|
"next-swc.linux-x64-musl.node",
|
|
"install.js"
|
|
],
|
|
"scripts": {
|
|
"install": "node install.js"
|
|
},
|
|
"license": "MIT",
|
|
"engines": {
|
|
"node": ">= 10"
|
|
}
|
|
}
|