Skip to content

Commit 10e0f03

Browse files
committed
chore(win): normalize windows platform as win32 for package.json
1 parent 2e4ceee commit 10e0f03

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.json.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"author": "Yousaf Nabi <you@saf.dev>",
1212
"homepage": "https://github.com/pact-foundation/pact-js-core#readme",
1313
"os": [
14-
"${node_os}"
14+
"${node_pkg_os}"
1515
],
1616
${libc}
1717
"cpu": [

script/ci/build-opt-dependencies.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ setup_package_vars(){
1212
unset node_arch
1313
unset node_libc
1414
unset libc
15-
echo $supported_platform
1615
IFS='-' read -r node_os node_arch node_libc <<< "$supported_platform"
1716
export node_os=$node_os
17+
export node_pkg_os=$node_os
1818
export node_arch=$node_arch
1919
export node_libc=$node_libc
20-
export prebuild_package=$node_os-$node_arch
20+
export prebuild_package="$node_os-$node_arch"
21+
# we need to overwrite windows as win32 in the package.json
2122
if [ "$node_os" = "windows" ]; then
23+
export node_pkg_os=win32
2224
export prebuild_package="win32-$node_arch"
2325
fi
2426
if [ "$node_libc" = "glibc" ]; then

0 commit comments

Comments
 (0)