pnpm 11.27.0 → 11.28.0

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.
@@ -1,31 +1,49 @@
1
1
  #!/bin/sh
2
2
  # Resolve $0 through symlinks so basedir is the shim's real directory.
3
3
  # Cap hops at the kernel's ELOOP limit so a cycle cannot hang the shim.
4
+ #
5
+ # A shim runs with node_modules/.bin at the front of PATH, so readlink, sed,
6
+ # uname, and printf go through `command -p`, which searches the system default
7
+ # path instead. A dependency's bin cannot stand in for one of them and take over
8
+ # the shim before it reaches its target. Directories come from `${link%/*}`,
9
+ # which needs no helper at all.
4
10
  link="$0"
11
+ # `${link%/*}` needs a separator to strip. A bare name came from a PATH lookup
12
+ # and stands for a file in the current directory.
13
+ case "$link" in
14
+ */*|*\\*) ;;
15
+ *) link="./$link" ;;
16
+ esac
5
17
  hops=0
6
18
  while [ -L "$link" ] && [ "$hops" -lt 40 ]; do
7
19
  hops=$((hops+1))
8
- target=$(readlink "$link")
20
+ target=$(command -p readlink "$link")
9
21
  case "$target" in
10
22
  /*) link="$target" ;;
11
- *) link="$(dirname "$link")/$target" ;;
23
+ *) link="${link%/*}/$target" ;;
12
24
  esac
13
25
  done
14
- basedir=$(dirname "$(echo "$link" | sed -e 's,\\,/,g')")
26
+ basedir=$(command -p printf '%s\n' "$link" | command -p sed -e 's,\\,/,g')
27
+ basedir="${basedir%/*}"
15
28
  basedir_win="$basedir"
16
29
  exe=""
17
30
  msys=""
18
31
 
19
- case `uname -a` in
32
+ case `command -p uname -a` in
20
33
  *CYGWIN*|*MINGW*|*MSYS*)
21
- if command -v cygpath > /dev/null 2>&1; then
34
+ if converted=$(command -p cygpath -w "$basedir" 2>/dev/null) && [ -n "$converted" ]; then
35
+ basedir_win="$converted"
36
+ elif command -v cygpath > /dev/null 2>&1; then
22
37
  basedir_win=`cygpath -w "$basedir"`
23
38
  fi
24
39
  exe=".exe"
25
40
  msys="true"
26
41
  ;;
27
42
  *WSL2*)
28
- if command -v wslpath > /dev/null 2>&1; then
43
+ if converted=$(command -p wslpath -w "$basedir" 2>/dev/null) && [ -n "$converted" ]; then
44
+ basedir_win="$converted"
45
+ exe=".exe"
46
+ elif command -v wslpath > /dev/null 2>&1; then
29
47
  basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
30
48
  if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
31
49
  basedir_win="$basedir"
@@ -36,15 +54,16 @@ case `uname -a` in
36
54
  ;;
37
55
  esac
38
56
 
57
+ basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
39
58
  if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
40
59
  exec "$basedir/node.exe" "$basedir_win/../node-gyp/bin/node-gyp.js" "$@"
41
60
  elif [ -x "$basedir/node" ]; then
42
- exec "$basedir/node" "$basedir/../node-gyp/bin/node-gyp.js" "$@"
61
+ exec "$basedir/node" "$basedir_abs/../node-gyp/bin/node-gyp.js" "$@"
43
62
  elif command -v node >/dev/null 2>&1; then
44
- exec node "$basedir/../node-gyp/bin/node-gyp.js" "$@"
63
+ exec node "$basedir_abs/../node-gyp/bin/node-gyp.js" "$@"
45
64
  elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
46
65
  exec node.exe "$basedir_win/../node-gyp/bin/node-gyp.js" "$@"
47
66
  else
48
- exec node "$basedir/../node-gyp/bin/node-gyp.js" "$@"
67
+ exec node "$basedir_abs/../node-gyp/bin/node-gyp.js" "$@"
49
68
  fi
50
- # cmd-shim-target=/Users/runner/work/pnpm/pnpm/pnpm11/pnpm/temp-deploy/node_modules/node-gyp/./bin/node-gyp.js
69
+ # cmd-shim-target=../node-gyp/bin/node-gyp.js
@@ -1,31 +1,49 @@
1
1
  #!/bin/sh
2
2
  # Resolve $0 through symlinks so basedir is the shim's real directory.
3
3
  # Cap hops at the kernel's ELOOP limit so a cycle cannot hang the shim.
4
+ #
5
+ # A shim runs with node_modules/.bin at the front of PATH, so readlink, sed,
6
+ # uname, and printf go through `command -p`, which searches the system default
7
+ # path instead. A dependency's bin cannot stand in for one of them and take over
8
+ # the shim before it reaches its target. Directories come from `${link%/*}`,
9
+ # which needs no helper at all.
4
10
  link="$0"
11
+ # `${link%/*}` needs a separator to strip. A bare name came from a PATH lookup
12
+ # and stands for a file in the current directory.
13
+ case "$link" in
14
+ */*|*\\*) ;;
15
+ *) link="./$link" ;;
16
+ esac
5
17
  hops=0
6
18
  while [ -L "$link" ] && [ "$hops" -lt 40 ]; do
7
19
  hops=$((hops+1))
8
- target=$(readlink "$link")
20
+ target=$(command -p readlink "$link")
9
21
  case "$target" in
10
22
  /*) link="$target" ;;
11
- *) link="$(dirname "$link")/$target" ;;
23
+ *) link="${link%/*}/$target" ;;
12
24
  esac
13
25
  done
14
- basedir=$(dirname "$(echo "$link" | sed -e 's,\\,/,g')")
26
+ basedir=$(command -p printf '%s\n' "$link" | command -p sed -e 's,\\,/,g')
27
+ basedir="${basedir%/*}"
15
28
  basedir_win="$basedir"
16
29
  exe=""
17
30
  msys=""
18
31
 
19
- case `uname -a` in
32
+ case `command -p uname -a` in
20
33
  *CYGWIN*|*MINGW*|*MSYS*)
21
- if command -v cygpath > /dev/null 2>&1; then
34
+ if converted=$(command -p cygpath -w "$basedir" 2>/dev/null) && [ -n "$converted" ]; then
35
+ basedir_win="$converted"
36
+ elif command -v cygpath > /dev/null 2>&1; then
22
37
  basedir_win=`cygpath -w "$basedir"`
23
38
  fi
24
39
  exe=".exe"
25
40
  msys="true"
26
41
  ;;
27
42
  *WSL2*)
28
- if command -v wslpath > /dev/null 2>&1; then
43
+ if converted=$(command -p wslpath -w "$basedir" 2>/dev/null) && [ -n "$converted" ]; then
44
+ basedir_win="$converted"
45
+ exe=".exe"
46
+ elif command -v wslpath > /dev/null 2>&1; then
29
47
  basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
30
48
  if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
31
49
  basedir_win="$basedir"
@@ -36,15 +54,16 @@ case `uname -a` in
36
54
  ;;
37
55
  esac
38
56
 
57
+ basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
39
58
  if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
40
59
  exec "$basedir/node.exe" "$basedir_win/../which/bin/which.js" "$@"
41
60
  elif [ -x "$basedir/node" ]; then
42
- exec "$basedir/node" "$basedir/../which/bin/which.js" "$@"
61
+ exec "$basedir/node" "$basedir_abs/../which/bin/which.js" "$@"
43
62
  elif command -v node >/dev/null 2>&1; then
44
- exec node "$basedir/../which/bin/which.js" "$@"
63
+ exec node "$basedir_abs/../which/bin/which.js" "$@"
45
64
  elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
46
65
  exec node.exe "$basedir_win/../which/bin/which.js" "$@"
47
66
  else
48
- exec node "$basedir/../which/bin/which.js" "$@"
67
+ exec node "$basedir_abs/../which/bin/which.js" "$@"
49
68
  fi
50
- # cmd-shim-target=/Users/runner/work/pnpm/pnpm/pnpm11/pnpm/temp-deploy/node_modules/which/./bin/which.js
69
+ # cmd-shim-target=../which/bin/which.js
@@ -1,31 +1,49 @@
1
1
  #!/bin/sh
2
2
  # Resolve $0 through symlinks so basedir is the shim's real directory.
3
3
  # Cap hops at the kernel's ELOOP limit so a cycle cannot hang the shim.
4
+ #
5
+ # A shim runs with node_modules/.bin at the front of PATH, so readlink, sed,
6
+ # uname, and printf go through `command -p`, which searches the system default
7
+ # path instead. A dependency's bin cannot stand in for one of them and take over
8
+ # the shim before it reaches its target. Directories come from `${link%/*}`,
9
+ # which needs no helper at all.
4
10
  link="$0"
11
+ # `${link%/*}` needs a separator to strip. A bare name came from a PATH lookup
12
+ # and stands for a file in the current directory.
13
+ case "$link" in
14
+ */*|*\\*) ;;
15
+ *) link="./$link" ;;
16
+ esac
5
17
  hops=0
6
18
  while [ -L "$link" ] && [ "$hops" -lt 40 ]; do
7
19
  hops=$((hops+1))
8
- target=$(readlink "$link")
20
+ target=$(command -p readlink "$link")
9
21
  case "$target" in
10
22
  /*) link="$target" ;;
11
- *) link="$(dirname "$link")/$target" ;;
23
+ *) link="${link%/*}/$target" ;;
12
24
  esac
13
25
  done
14
- basedir=$(dirname "$(echo "$link" | sed -e 's,\\,/,g')")
26
+ basedir=$(command -p printf '%s\n' "$link" | command -p sed -e 's,\\,/,g')
27
+ basedir="${basedir%/*}"
15
28
  basedir_win="$basedir"
16
29
  exe=""
17
30
  msys=""
18
31
 
19
- case `uname -a` in
32
+ case `command -p uname -a` in
20
33
  *CYGWIN*|*MINGW*|*MSYS*)
21
- if command -v cygpath > /dev/null 2>&1; then
34
+ if converted=$(command -p cygpath -w "$basedir" 2>/dev/null) && [ -n "$converted" ]; then
35
+ basedir_win="$converted"
36
+ elif command -v cygpath > /dev/null 2>&1; then
22
37
  basedir_win=`cygpath -w "$basedir"`
23
38
  fi
24
39
  exe=".exe"
25
40
  msys="true"
26
41
  ;;
27
42
  *WSL2*)
28
- if command -v wslpath > /dev/null 2>&1; then
43
+ if converted=$(command -p wslpath -w "$basedir" 2>/dev/null) && [ -n "$converted" ]; then
44
+ basedir_win="$converted"
45
+ exe=".exe"
46
+ elif command -v wslpath > /dev/null 2>&1; then
29
47
  basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
30
48
  if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
31
49
  basedir_win="$basedir"
@@ -36,15 +54,16 @@ case `uname -a` in
36
54
  ;;
37
55
  esac
38
56
 
57
+ basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
39
58
  if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
40
59
  exec "$basedir/node.exe" "$basedir_win/../nopt/bin/nopt.js" "$@"
41
60
  elif [ -x "$basedir/node" ]; then
42
- exec "$basedir/node" "$basedir/../nopt/bin/nopt.js" "$@"
61
+ exec "$basedir/node" "$basedir_abs/../nopt/bin/nopt.js" "$@"
43
62
  elif command -v node >/dev/null 2>&1; then
44
- exec node "$basedir/../nopt/bin/nopt.js" "$@"
63
+ exec node "$basedir_abs/../nopt/bin/nopt.js" "$@"
45
64
  elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
46
65
  exec node.exe "$basedir_win/../nopt/bin/nopt.js" "$@"
47
66
  else
48
- exec node "$basedir/../nopt/bin/nopt.js" "$@"
67
+ exec node "$basedir_abs/../nopt/bin/nopt.js" "$@"
49
68
  fi
50
- # cmd-shim-target=/Users/runner/work/pnpm/pnpm/pnpm11/pnpm/temp-deploy/node_modules/nopt/bin/nopt.js
69
+ # cmd-shim-target=../nopt/bin/nopt.js
@@ -1,31 +1,49 @@
1
1
  #!/bin/sh
2
2
  # Resolve $0 through symlinks so basedir is the shim's real directory.
3
3
  # Cap hops at the kernel's ELOOP limit so a cycle cannot hang the shim.
4
+ #
5
+ # A shim runs with node_modules/.bin at the front of PATH, so readlink, sed,
6
+ # uname, and printf go through `command -p`, which searches the system default
7
+ # path instead. A dependency's bin cannot stand in for one of them and take over
8
+ # the shim before it reaches its target. Directories come from `${link%/*}`,
9
+ # which needs no helper at all.
4
10
  link="$0"
11
+ # `${link%/*}` needs a separator to strip. A bare name came from a PATH lookup
12
+ # and stands for a file in the current directory.
13
+ case "$link" in
14
+ */*|*\\*) ;;
15
+ *) link="./$link" ;;
16
+ esac
5
17
  hops=0
6
18
  while [ -L "$link" ] && [ "$hops" -lt 40 ]; do
7
19
  hops=$((hops+1))
8
- target=$(readlink "$link")
20
+ target=$(command -p readlink "$link")
9
21
  case "$target" in
10
22
  /*) link="$target" ;;
11
- *) link="$(dirname "$link")/$target" ;;
23
+ *) link="${link%/*}/$target" ;;
12
24
  esac
13
25
  done
14
- basedir=$(dirname "$(echo "$link" | sed -e 's,\\,/,g')")
26
+ basedir=$(command -p printf '%s\n' "$link" | command -p sed -e 's,\\,/,g')
27
+ basedir="${basedir%/*}"
15
28
  basedir_win="$basedir"
16
29
  exe=""
17
30
  msys=""
18
31
 
19
- case `uname -a` in
32
+ case `command -p uname -a` in
20
33
  *CYGWIN*|*MINGW*|*MSYS*)
21
- if command -v cygpath > /dev/null 2>&1; then
34
+ if converted=$(command -p cygpath -w "$basedir" 2>/dev/null) && [ -n "$converted" ]; then
35
+ basedir_win="$converted"
36
+ elif command -v cygpath > /dev/null 2>&1; then
22
37
  basedir_win=`cygpath -w "$basedir"`
23
38
  fi
24
39
  exe=".exe"
25
40
  msys="true"
26
41
  ;;
27
42
  *WSL2*)
28
- if command -v wslpath > /dev/null 2>&1; then
43
+ if converted=$(command -p wslpath -w "$basedir" 2>/dev/null) && [ -n "$converted" ]; then
44
+ basedir_win="$converted"
45
+ exe=".exe"
46
+ elif command -v wslpath > /dev/null 2>&1; then
29
47
  basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
30
48
  if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
31
49
  basedir_win="$basedir"
@@ -36,15 +54,16 @@ case `uname -a` in
36
54
  ;;
37
55
  esac
38
56
 
57
+ basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
39
58
  if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
40
59
  exec "$basedir/node.exe" "$basedir_win/../semver/bin/semver.js" "$@"
41
60
  elif [ -x "$basedir/node" ]; then
42
- exec "$basedir/node" "$basedir/../semver/bin/semver.js" "$@"
61
+ exec "$basedir/node" "$basedir_abs/../semver/bin/semver.js" "$@"
43
62
  elif command -v node >/dev/null 2>&1; then
44
- exec node "$basedir/../semver/bin/semver.js" "$@"
63
+ exec node "$basedir_abs/../semver/bin/semver.js" "$@"
45
64
  elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
46
65
  exec node.exe "$basedir_win/../semver/bin/semver.js" "$@"
47
66
  else
48
- exec node "$basedir/../semver/bin/semver.js" "$@"
67
+ exec node "$basedir_abs/../semver/bin/semver.js" "$@"
49
68
  fi
50
- # cmd-shim-target=/Users/runner/work/pnpm/pnpm/pnpm11/pnpm/temp-deploy/node_modules/semver/bin/semver.js
69
+ # cmd-shim-target=../semver/bin/semver.js