pnpm 11.27.1 → 11.28.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/pnpm.cjs CHANGED
File without changes
package/bin/pnpx.cjs CHANGED
File without changes
@@ -7,6 +7,24 @@
7
7
  # path instead. A dependency's bin cannot stand in for one of them and take over
8
8
  # the shim before it reaches its target. Directories come from `${link%/*}`,
9
9
  # which needs no helper at all.
10
+ #
11
+ # Where no default path is compiled in, as on Nix, `command -p` searches PATH
12
+ # instead, so the helpers run with node_modules and relative entries dropped from
13
+ # PATH.
14
+ caller_path_set=${PATH+set}
15
+ caller_path=${PATH-}
16
+ helper_path=
17
+ rest=$caller_path:
18
+ while [ -n "$rest" ]; do
19
+ dir=${rest%%:*}
20
+ rest=${rest#*:}
21
+ case "$dir" in
22
+ */node_modules/*|*/node_modules) ;;
23
+ /*) helper_path=${helper_path:+$helper_path:}$dir ;;
24
+ esac
25
+ done
26
+ # An empty PATH searches the current directory.
27
+ PATH=${helper_path:-/}
10
28
  link="$0"
11
29
  # `${link%/*}` needs a separator to strip. A bare name came from a PATH lookup
12
30
  # and stands for a file in the current directory.
@@ -31,14 +49,19 @@ msys=""
31
49
 
32
50
  case `command -p uname -a` in
33
51
  *CYGWIN*|*MINGW*|*MSYS*)
34
- if command -v cygpath > /dev/null 2>&1; then
52
+ if converted=$(command -p cygpath -w "$basedir" 2>/dev/null) && [ -n "$converted" ]; then
53
+ basedir_win="$converted"
54
+ elif command -v cygpath > /dev/null 2>&1; then
35
55
  basedir_win=`cygpath -w "$basedir"`
36
56
  fi
37
57
  exe=".exe"
38
58
  msys="true"
39
59
  ;;
40
60
  *WSL2*)
41
- if command -v wslpath > /dev/null 2>&1; then
61
+ if converted=$(command -p wslpath -w "$basedir" 2>/dev/null) && [ -n "$converted" ]; then
62
+ basedir_win="$converted"
63
+ exe=".exe"
64
+ elif command -v wslpath > /dev/null 2>&1; then
42
65
  basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
43
66
  if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
44
67
  basedir_win="$basedir"
@@ -48,16 +71,18 @@ case `command -p uname -a` in
48
71
  fi
49
72
  ;;
50
73
  esac
74
+ if [ -n "$caller_path_set" ]; then PATH=$caller_path; else unset PATH; fi
51
75
 
76
+ basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
52
77
  if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
53
78
  exec "$basedir/node.exe" "$basedir_win/../node-gyp/bin/node-gyp.js" "$@"
54
79
  elif [ -x "$basedir/node" ]; then
55
- exec "$basedir/node" "$basedir/../node-gyp/bin/node-gyp.js" "$@"
80
+ exec "$basedir/node" "$basedir_abs/../node-gyp/bin/node-gyp.js" "$@"
56
81
  elif command -v node >/dev/null 2>&1; then
57
- exec node "$basedir/../node-gyp/bin/node-gyp.js" "$@"
82
+ exec node "$basedir_abs/../node-gyp/bin/node-gyp.js" "$@"
58
83
  elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
59
84
  exec node.exe "$basedir_win/../node-gyp/bin/node-gyp.js" "$@"
60
85
  else
61
- exec node "$basedir/../node-gyp/bin/node-gyp.js" "$@"
86
+ exec node "$basedir_abs/../node-gyp/bin/node-gyp.js" "$@"
62
87
  fi
63
- # cmd-shim-target=/Users/runner/work/pnpm/pnpm/pnpm11/pnpm/temp-deploy/node_modules/node-gyp/./bin/node-gyp.js
88
+ # cmd-shim-target=../node-gyp/bin/node-gyp.js
@@ -7,6 +7,24 @@
7
7
  # path instead. A dependency's bin cannot stand in for one of them and take over
8
8
  # the shim before it reaches its target. Directories come from `${link%/*}`,
9
9
  # which needs no helper at all.
10
+ #
11
+ # Where no default path is compiled in, as on Nix, `command -p` searches PATH
12
+ # instead, so the helpers run with node_modules and relative entries dropped from
13
+ # PATH.
14
+ caller_path_set=${PATH+set}
15
+ caller_path=${PATH-}
16
+ helper_path=
17
+ rest=$caller_path:
18
+ while [ -n "$rest" ]; do
19
+ dir=${rest%%:*}
20
+ rest=${rest#*:}
21
+ case "$dir" in
22
+ */node_modules/*|*/node_modules) ;;
23
+ /*) helper_path=${helper_path:+$helper_path:}$dir ;;
24
+ esac
25
+ done
26
+ # An empty PATH searches the current directory.
27
+ PATH=${helper_path:-/}
10
28
  link="$0"
11
29
  # `${link%/*}` needs a separator to strip. A bare name came from a PATH lookup
12
30
  # and stands for a file in the current directory.
@@ -31,14 +49,19 @@ msys=""
31
49
 
32
50
  case `command -p uname -a` in
33
51
  *CYGWIN*|*MINGW*|*MSYS*)
34
- if command -v cygpath > /dev/null 2>&1; then
52
+ if converted=$(command -p cygpath -w "$basedir" 2>/dev/null) && [ -n "$converted" ]; then
53
+ basedir_win="$converted"
54
+ elif command -v cygpath > /dev/null 2>&1; then
35
55
  basedir_win=`cygpath -w "$basedir"`
36
56
  fi
37
57
  exe=".exe"
38
58
  msys="true"
39
59
  ;;
40
60
  *WSL2*)
41
- if command -v wslpath > /dev/null 2>&1; then
61
+ if converted=$(command -p wslpath -w "$basedir" 2>/dev/null) && [ -n "$converted" ]; then
62
+ basedir_win="$converted"
63
+ exe=".exe"
64
+ elif command -v wslpath > /dev/null 2>&1; then
42
65
  basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
43
66
  if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
44
67
  basedir_win="$basedir"
@@ -48,16 +71,18 @@ case `command -p uname -a` in
48
71
  fi
49
72
  ;;
50
73
  esac
74
+ if [ -n "$caller_path_set" ]; then PATH=$caller_path; else unset PATH; fi
51
75
 
76
+ basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
52
77
  if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
53
78
  exec "$basedir/node.exe" "$basedir_win/../which/bin/which.js" "$@"
54
79
  elif [ -x "$basedir/node" ]; then
55
- exec "$basedir/node" "$basedir/../which/bin/which.js" "$@"
80
+ exec "$basedir/node" "$basedir_abs/../which/bin/which.js" "$@"
56
81
  elif command -v node >/dev/null 2>&1; then
57
- exec node "$basedir/../which/bin/which.js" "$@"
82
+ exec node "$basedir_abs/../which/bin/which.js" "$@"
58
83
  elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
59
84
  exec node.exe "$basedir_win/../which/bin/which.js" "$@"
60
85
  else
61
- exec node "$basedir/../which/bin/which.js" "$@"
86
+ exec node "$basedir_abs/../which/bin/which.js" "$@"
62
87
  fi
63
- # cmd-shim-target=/Users/runner/work/pnpm/pnpm/pnpm11/pnpm/temp-deploy/node_modules/which/./bin/which.js
88
+ # cmd-shim-target=../which/bin/which.js
@@ -7,6 +7,24 @@
7
7
  # path instead. A dependency's bin cannot stand in for one of them and take over
8
8
  # the shim before it reaches its target. Directories come from `${link%/*}`,
9
9
  # which needs no helper at all.
10
+ #
11
+ # Where no default path is compiled in, as on Nix, `command -p` searches PATH
12
+ # instead, so the helpers run with node_modules and relative entries dropped from
13
+ # PATH.
14
+ caller_path_set=${PATH+set}
15
+ caller_path=${PATH-}
16
+ helper_path=
17
+ rest=$caller_path:
18
+ while [ -n "$rest" ]; do
19
+ dir=${rest%%:*}
20
+ rest=${rest#*:}
21
+ case "$dir" in
22
+ */node_modules/*|*/node_modules) ;;
23
+ /*) helper_path=${helper_path:+$helper_path:}$dir ;;
24
+ esac
25
+ done
26
+ # An empty PATH searches the current directory.
27
+ PATH=${helper_path:-/}
10
28
  link="$0"
11
29
  # `${link%/*}` needs a separator to strip. A bare name came from a PATH lookup
12
30
  # and stands for a file in the current directory.
@@ -31,14 +49,19 @@ msys=""
31
49
 
32
50
  case `command -p uname -a` in
33
51
  *CYGWIN*|*MINGW*|*MSYS*)
34
- if command -v cygpath > /dev/null 2>&1; then
52
+ if converted=$(command -p cygpath -w "$basedir" 2>/dev/null) && [ -n "$converted" ]; then
53
+ basedir_win="$converted"
54
+ elif command -v cygpath > /dev/null 2>&1; then
35
55
  basedir_win=`cygpath -w "$basedir"`
36
56
  fi
37
57
  exe=".exe"
38
58
  msys="true"
39
59
  ;;
40
60
  *WSL2*)
41
- if command -v wslpath > /dev/null 2>&1; then
61
+ if converted=$(command -p wslpath -w "$basedir" 2>/dev/null) && [ -n "$converted" ]; then
62
+ basedir_win="$converted"
63
+ exe=".exe"
64
+ elif command -v wslpath > /dev/null 2>&1; then
42
65
  basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
43
66
  if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
44
67
  basedir_win="$basedir"
@@ -48,16 +71,18 @@ case `command -p uname -a` in
48
71
  fi
49
72
  ;;
50
73
  esac
74
+ if [ -n "$caller_path_set" ]; then PATH=$caller_path; else unset PATH; fi
51
75
 
76
+ basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
52
77
  if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
53
78
  exec "$basedir/node.exe" "$basedir_win/../nopt/bin/nopt.js" "$@"
54
79
  elif [ -x "$basedir/node" ]; then
55
- exec "$basedir/node" "$basedir/../nopt/bin/nopt.js" "$@"
80
+ exec "$basedir/node" "$basedir_abs/../nopt/bin/nopt.js" "$@"
56
81
  elif command -v node >/dev/null 2>&1; then
57
- exec node "$basedir/../nopt/bin/nopt.js" "$@"
82
+ exec node "$basedir_abs/../nopt/bin/nopt.js" "$@"
58
83
  elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
59
84
  exec node.exe "$basedir_win/../nopt/bin/nopt.js" "$@"
60
85
  else
61
- exec node "$basedir/../nopt/bin/nopt.js" "$@"
86
+ exec node "$basedir_abs/../nopt/bin/nopt.js" "$@"
62
87
  fi
63
- # cmd-shim-target=/Users/runner/work/pnpm/pnpm/pnpm11/pnpm/temp-deploy/node_modules/nopt/bin/nopt.js
88
+ # cmd-shim-target=../nopt/bin/nopt.js
@@ -7,6 +7,24 @@
7
7
  # path instead. A dependency's bin cannot stand in for one of them and take over
8
8
  # the shim before it reaches its target. Directories come from `${link%/*}`,
9
9
  # which needs no helper at all.
10
+ #
11
+ # Where no default path is compiled in, as on Nix, `command -p` searches PATH
12
+ # instead, so the helpers run with node_modules and relative entries dropped from
13
+ # PATH.
14
+ caller_path_set=${PATH+set}
15
+ caller_path=${PATH-}
16
+ helper_path=
17
+ rest=$caller_path:
18
+ while [ -n "$rest" ]; do
19
+ dir=${rest%%:*}
20
+ rest=${rest#*:}
21
+ case "$dir" in
22
+ */node_modules/*|*/node_modules) ;;
23
+ /*) helper_path=${helper_path:+$helper_path:}$dir ;;
24
+ esac
25
+ done
26
+ # An empty PATH searches the current directory.
27
+ PATH=${helper_path:-/}
10
28
  link="$0"
11
29
  # `${link%/*}` needs a separator to strip. A bare name came from a PATH lookup
12
30
  # and stands for a file in the current directory.
@@ -31,14 +49,19 @@ msys=""
31
49
 
32
50
  case `command -p uname -a` in
33
51
  *CYGWIN*|*MINGW*|*MSYS*)
34
- if command -v cygpath > /dev/null 2>&1; then
52
+ if converted=$(command -p cygpath -w "$basedir" 2>/dev/null) && [ -n "$converted" ]; then
53
+ basedir_win="$converted"
54
+ elif command -v cygpath > /dev/null 2>&1; then
35
55
  basedir_win=`cygpath -w "$basedir"`
36
56
  fi
37
57
  exe=".exe"
38
58
  msys="true"
39
59
  ;;
40
60
  *WSL2*)
41
- if command -v wslpath > /dev/null 2>&1; then
61
+ if converted=$(command -p wslpath -w "$basedir" 2>/dev/null) && [ -n "$converted" ]; then
62
+ basedir_win="$converted"
63
+ exe=".exe"
64
+ elif command -v wslpath > /dev/null 2>&1; then
42
65
  basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
43
66
  if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
44
67
  basedir_win="$basedir"
@@ -48,16 +71,18 @@ case `command -p uname -a` in
48
71
  fi
49
72
  ;;
50
73
  esac
74
+ if [ -n "$caller_path_set" ]; then PATH=$caller_path; else unset PATH; fi
51
75
 
76
+ basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
52
77
  if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
53
78
  exec "$basedir/node.exe" "$basedir_win/../semver/bin/semver.js" "$@"
54
79
  elif [ -x "$basedir/node" ]; then
55
- exec "$basedir/node" "$basedir/../semver/bin/semver.js" "$@"
80
+ exec "$basedir/node" "$basedir_abs/../semver/bin/semver.js" "$@"
56
81
  elif command -v node >/dev/null 2>&1; then
57
- exec node "$basedir/../semver/bin/semver.js" "$@"
82
+ exec node "$basedir_abs/../semver/bin/semver.js" "$@"
58
83
  elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
59
84
  exec node.exe "$basedir_win/../semver/bin/semver.js" "$@"
60
85
  else
61
- exec node "$basedir/../semver/bin/semver.js" "$@"
86
+ exec node "$basedir_abs/../semver/bin/semver.js" "$@"
62
87
  fi
63
- # cmd-shim-target=/Users/runner/work/pnpm/pnpm/pnpm11/pnpm/temp-deploy/node_modules/semver/bin/semver.js
88
+ # cmd-shim-target=../semver/bin/semver.js
File without changes
File without changes
File without changes
File without changes
File without changes