Skip to content

Commit

Permalink
chore(win): normalize windows platform as win32 for package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Jan 23, 2025
1 parent 2e4ceee commit 10e0f03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"author": "Yousaf Nabi <you@saf.dev>",
"homepage": "https://github.com/pact-foundation/pact-js-core#readme",
"os": [
"${node_os}"
"${node_pkg_os}"
],
${libc}
"cpu": [
Expand Down
6 changes: 4 additions & 2 deletions script/ci/build-opt-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ setup_package_vars(){
unset node_arch
unset node_libc
unset libc
echo $supported_platform
IFS='-' read -r node_os node_arch node_libc <<< "$supported_platform"
export node_os=$node_os
export node_pkg_os=$node_os
export node_arch=$node_arch
export node_libc=$node_libc
export prebuild_package=$node_os-$node_arch
export prebuild_package="$node_os-$node_arch"
# we need to overwrite windows as win32 in the package.json
if [ "$node_os" = "windows" ]; then
export node_pkg_os=win32
export prebuild_package="win32-$node_arch"
fi
if [ "$node_libc" = "glibc" ]; then
Expand Down

0 comments on commit 10e0f03

Please sign in to comment.