Skip to content

Commit

Permalink
Remove os, cpu and libc from builds package.json files
Browse files Browse the repository at this point in the history
  • Loading branch information
fvictorio committed May 14, 2024
1 parent bd6a6ff commit 09f6611
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 61 deletions.
6 changes: 0 additions & 6 deletions crates/edr_napi/npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@
"type": "git"
},
"version": "0.2.0-alpha.1",
"os": [
"darwin"
],
"cpu": [
"arm64"
],
"main": "edr.darwin-arm64.node",
"files": [
"edr.darwin-arm64.node"
Expand Down
6 changes: 0 additions & 6 deletions crates/edr_napi/npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@
"type": "git"
},
"version": "0.2.0-alpha.1",
"os": [
"darwin"
],
"cpu": [
"x64"
],
"main": "edr.darwin-x64.node",
"files": [
"edr.darwin-x64.node"
Expand Down
11 changes: 1 addition & 10 deletions crates/edr_napi/npm/linux-arm64-gnu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,12 @@
"type": "git"
},
"version": "0.2.0-alpha.1",
"os": [
"linux"
],
"cpu": [
"arm64"
],
"main": "edr.linux-arm64-gnu.node",
"files": [
"edr.linux-arm64-gnu.node"
],
"license": "MIT",
"engines": {
"node": ">= 18"
},
"libc": [
"glibc"
]
}
}
11 changes: 1 addition & 10 deletions crates/edr_napi/npm/linux-arm64-musl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,12 @@
"type": "git"
},
"version": "0.2.0-alpha.1",
"os": [
"linux"
],
"cpu": [
"arm64"
],
"main": "edr.linux-arm64-musl.node",
"files": [
"edr.linux-arm64-musl.node"
],
"license": "MIT",
"engines": {
"node": ">= 18"
},
"libc": [
"musl"
]
}
}
11 changes: 1 addition & 10 deletions crates/edr_napi/npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,12 @@
"type": "git"
},
"version": "0.2.0-alpha.1",
"os": [
"linux"
],
"cpu": [
"x64"
],
"main": "edr.linux-x64-gnu.node",
"files": [
"edr.linux-x64-gnu.node"
],
"license": "MIT",
"engines": {
"node": ">= 18"
},
"libc": [
"glibc"
]
}
}
11 changes: 1 addition & 10 deletions crates/edr_napi/npm/linux-x64-musl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,12 @@
"type": "git"
},
"version": "0.2.0-alpha.1",
"os": [
"linux"
],
"cpu": [
"x64"
],
"main": "edr.linux-x64-musl.node",
"files": [
"edr.linux-x64-musl.node"
],
"license": "MIT",
"engines": {
"node": ">= 18"
},
"libc": [
"musl"
]
}
}
6 changes: 0 additions & 6 deletions crates/edr_napi/npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@
"type": "git"
},
"version": "0.2.0-alpha.1",
"os": [
"win32"
],
"cpu": [
"x64"
],
"main": "edr.win32-x64-msvc.node",
"files": [
"edr.win32-x64-msvc.node"
Expand Down
3 changes: 0 additions & 3 deletions crates/edr_napi/scripts/prepublish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,3 @@ pnpm napi prepublish -t npm --skip-gh-release

# rename optionalDependencies key to dependencies
jq 'with_entries(if .key == "optionalDependencies" then .key = "dependencies" else . end)' package.json | sponge package.json

# remove os, cpu, libc from builds package.json files
for i in npm/*/package.json; do jq 'del(.os, .cpu, .libc)' $i | sponge $i; done

0 comments on commit 09f6611

Please sign in to comment.