Skip to content

Commit

Permalink
Merge branch 'master' of github.com:parcel-bundler/parcel-css
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett committed Jun 16, 2022
2 parents 9202403 + 0db15a8 commit 3dd150d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions scripts/build-npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ const sysToNodePlatform = {
darwin: 'darwin',
windows: 'win32',
};
const abiToNodeLibc = {
gnu: 'glibc',
};

let optionalDependencies = {};
let cliOptionalDependencies = {};
Expand Down Expand Up @@ -75,8 +78,8 @@ function buildNode(triple, cpu, os, abi, t) {
pkg2.name += '-' + t;
pkg2.os = [os];
pkg2.cpu = [cpu];
if (abi) {
pkg2.libc = [abi];
if (abi && os !== "win32") {
pkg2.libc = [abiToNodeLibc[abi] || abi];
}
pkg2.main = name;
pkg2.files = [name];
Expand Down Expand Up @@ -105,8 +108,8 @@ function buildCLI(triple, cpu, os, abi, t) {
pkg2.os = [os];
pkg2.cpu = [cpu];
pkg2.files = [binary];
if (abi) {
pkg2.libc = [abi];
if (abi && os !== "win32") {
pkg2.libc = [abiToNodeLibc[abi] || abi];
}
delete pkg2.main;
delete pkg2.napi;
Expand Down

0 comments on commit 3dd150d

Please sign in to comment.