pnpm 12.6.0 → 12.8.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.
- package/CHANGELOG.md +676 -0
- package/dist/node_modules/.bin/get-pnpm +31 -6
- package/dist/node_modules/.bin/node-gyp +31 -6
- package/dist/node_modules/.bin/node-which +31 -6
- package/dist/node_modules/.bin/nopt +31 -6
- package/dist/node_modules/.bin/semver +31 -6
- package/dist/node_modules/.pnpm-workspace-state-v1.json +19 -13
- package/dist/node_modules/get-pnpm/bin/get-pnpm.js +0 -0
- package/dist/node_modules/node-gyp/gyp/gyp.bat +0 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +0 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +0 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +0 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +0 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +0 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +0 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +0 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +0 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +0 -0
- package/dist/node_modules/node-gyp/gyp/test_gyp.py +0 -0
- package/dist/node_modules/nopt/bin/nopt.js +0 -0
- package/dist/node_modules/semver/bin/semver.js +0 -0
- package/dist/node_modules/which/bin/which.js +0 -0
- package/install.js +46 -6
- package/package.json +15 -15
- package/pn +19 -0
- package/pnpm +27 -0
- package/pnpx +19 -0
- package/pnx +19 -0
package/pn
CHANGED
|
@@ -8,6 +8,24 @@
|
|
|
8
8
|
# itself first. The hop cap matches the kernel's ELOOP limit, so a cycle cannot
|
|
9
9
|
# hang the script. Directories come from `${self%/*}` and `readlink` runs through
|
|
10
10
|
# `command -p`, so the caller's `PATH` decides nothing here.
|
|
11
|
+
#
|
|
12
|
+
# Where no default path is compiled in, as on Nix, `command -p` searches PATH
|
|
13
|
+
# instead, so the helpers run with node_modules and relative entries dropped from
|
|
14
|
+
# PATH.
|
|
15
|
+
caller_path_set=${PATH+set}
|
|
16
|
+
caller_path=${PATH-}
|
|
17
|
+
helper_path=
|
|
18
|
+
rest=$caller_path:
|
|
19
|
+
while [ -n "$rest" ]; do
|
|
20
|
+
dir=${rest%%:*}
|
|
21
|
+
rest=${rest#*:}
|
|
22
|
+
case "$dir" in
|
|
23
|
+
*/node_modules/*|*/node_modules) ;;
|
|
24
|
+
/*) helper_path=${helper_path:+$helper_path:}$dir ;;
|
|
25
|
+
esac
|
|
26
|
+
done
|
|
27
|
+
# An empty PATH searches the current directory.
|
|
28
|
+
PATH=${helper_path:-/}
|
|
11
29
|
self=$0
|
|
12
30
|
# MSYS and Cygwin can launch this with a native Windows path, which has no slash
|
|
13
31
|
# for `${self%/*}` to strip. Only a drive letter or a UNC prefix marks one; a
|
|
@@ -39,6 +57,7 @@ while [ -L "$self" ] && [ "$hops" -lt 40 ]; do
|
|
|
39
57
|
*) self=${self%/*}/$link ;;
|
|
40
58
|
esac
|
|
41
59
|
done
|
|
60
|
+
if [ -n "$caller_path_set" ]; then PATH=$caller_path; else unset PATH; fi
|
|
42
61
|
# The walk has to end at a regular file. Running out of hops leaves $self a
|
|
43
62
|
# symlink; a chain that changed under us can leave it dangling or a directory, and
|
|
44
63
|
# a failed readlink leaves a trailing slash. Each case would take `pnpm` from the
|
package/pnpm
CHANGED
|
@@ -28,6 +28,24 @@ fi
|
|
|
28
28
|
# `readlink` runs through `command -p`, which searches the system default path,
|
|
29
29
|
# and directories come from `${self%/*}`, which runs nothing at all. The caller's
|
|
30
30
|
# PATH therefore decides only which `node` runs, which is what it is for.
|
|
31
|
+
#
|
|
32
|
+
# Where no default path is compiled in, as on Nix, `command -p` searches PATH
|
|
33
|
+
# instead, so the helpers run with node_modules and relative entries dropped from
|
|
34
|
+
# PATH.
|
|
35
|
+
caller_path_set=${PATH+set}
|
|
36
|
+
caller_path=${PATH-}
|
|
37
|
+
helper_path=
|
|
38
|
+
rest=$caller_path:
|
|
39
|
+
while [ -n "$rest" ]; do
|
|
40
|
+
dir=${rest%%:*}
|
|
41
|
+
rest=${rest#*:}
|
|
42
|
+
case "$dir" in
|
|
43
|
+
*/node_modules/*|*/node_modules) ;;
|
|
44
|
+
/*) helper_path=${helper_path:+$helper_path:}$dir ;;
|
|
45
|
+
esac
|
|
46
|
+
done
|
|
47
|
+
# An empty PATH searches the current directory.
|
|
48
|
+
PATH=${helper_path:-/}
|
|
31
49
|
self=$0
|
|
32
50
|
# MSYS and Cygwin can launch this with a native Windows path, which has no slash
|
|
33
51
|
# for `${self%/*}` to strip. Only a drive letter or a UNC prefix marks one; a
|
|
@@ -59,5 +77,14 @@ while [ -L "$self" ] && [ "$hops" -lt 40 ]; do
|
|
|
59
77
|
*) self=${self%/*}/$link ;;
|
|
60
78
|
esac
|
|
61
79
|
done
|
|
80
|
+
if [ -n "$caller_path_set" ]; then PATH=$caller_path; else unset PATH; fi
|
|
81
|
+
# The walk has to end at a regular file. Running out of hops leaves $self a
|
|
82
|
+
# symlink; a chain that changed under us can leave it dangling or a directory, and
|
|
83
|
+
# a failed readlink leaves a trailing slash. Each case would take `bin/pnpm.mjs`
|
|
84
|
+
# from the wrong directory.
|
|
85
|
+
if [ -L "$self" ] || [ ! -f "$self" ]; then
|
|
86
|
+
echo "pnpm: could not resolve $0 to a regular file within 40 symlink hops." >&2
|
|
87
|
+
exit 1
|
|
88
|
+
fi
|
|
62
89
|
|
|
63
90
|
exec node "${self%/*}/bin/pnpm.mjs" "$@"
|
package/pnpx
CHANGED
|
@@ -8,6 +8,24 @@
|
|
|
8
8
|
# itself first. The hop cap matches the kernel's ELOOP limit, so a cycle cannot
|
|
9
9
|
# hang the script. Directories come from `${self%/*}` and `readlink` runs through
|
|
10
10
|
# `command -p`, so the caller's `PATH` decides nothing here.
|
|
11
|
+
#
|
|
12
|
+
# Where no default path is compiled in, as on Nix, `command -p` searches PATH
|
|
13
|
+
# instead, so the helpers run with node_modules and relative entries dropped from
|
|
14
|
+
# PATH.
|
|
15
|
+
caller_path_set=${PATH+set}
|
|
16
|
+
caller_path=${PATH-}
|
|
17
|
+
helper_path=
|
|
18
|
+
rest=$caller_path:
|
|
19
|
+
while [ -n "$rest" ]; do
|
|
20
|
+
dir=${rest%%:*}
|
|
21
|
+
rest=${rest#*:}
|
|
22
|
+
case "$dir" in
|
|
23
|
+
*/node_modules/*|*/node_modules) ;;
|
|
24
|
+
/*) helper_path=${helper_path:+$helper_path:}$dir ;;
|
|
25
|
+
esac
|
|
26
|
+
done
|
|
27
|
+
# An empty PATH searches the current directory.
|
|
28
|
+
PATH=${helper_path:-/}
|
|
11
29
|
self=$0
|
|
12
30
|
# MSYS and Cygwin can launch this with a native Windows path, which has no slash
|
|
13
31
|
# for `${self%/*}` to strip. Only a drive letter or a UNC prefix marks one; a
|
|
@@ -39,6 +57,7 @@ while [ -L "$self" ] && [ "$hops" -lt 40 ]; do
|
|
|
39
57
|
*) self=${self%/*}/$link ;;
|
|
40
58
|
esac
|
|
41
59
|
done
|
|
60
|
+
if [ -n "$caller_path_set" ]; then PATH=$caller_path; else unset PATH; fi
|
|
42
61
|
# The walk has to end at a regular file. Running out of hops leaves $self a
|
|
43
62
|
# symlink; a chain that changed under us can leave it dangling or a directory, and
|
|
44
63
|
# a failed readlink leaves a trailing slash. Each case would take `pnpm` from the
|
package/pnx
CHANGED
|
@@ -8,6 +8,24 @@
|
|
|
8
8
|
# itself first. The hop cap matches the kernel's ELOOP limit, so a cycle cannot
|
|
9
9
|
# hang the script. Directories come from `${self%/*}` and `readlink` runs through
|
|
10
10
|
# `command -p`, so the caller's `PATH` decides nothing here.
|
|
11
|
+
#
|
|
12
|
+
# Where no default path is compiled in, as on Nix, `command -p` searches PATH
|
|
13
|
+
# instead, so the helpers run with node_modules and relative entries dropped from
|
|
14
|
+
# PATH.
|
|
15
|
+
caller_path_set=${PATH+set}
|
|
16
|
+
caller_path=${PATH-}
|
|
17
|
+
helper_path=
|
|
18
|
+
rest=$caller_path:
|
|
19
|
+
while [ -n "$rest" ]; do
|
|
20
|
+
dir=${rest%%:*}
|
|
21
|
+
rest=${rest#*:}
|
|
22
|
+
case "$dir" in
|
|
23
|
+
*/node_modules/*|*/node_modules) ;;
|
|
24
|
+
/*) helper_path=${helper_path:+$helper_path:}$dir ;;
|
|
25
|
+
esac
|
|
26
|
+
done
|
|
27
|
+
# An empty PATH searches the current directory.
|
|
28
|
+
PATH=${helper_path:-/}
|
|
11
29
|
self=$0
|
|
12
30
|
# MSYS and Cygwin can launch this with a native Windows path, which has no slash
|
|
13
31
|
# for `${self%/*}` to strip. Only a drive letter or a UNC prefix marks one; a
|
|
@@ -39,6 +57,7 @@ while [ -L "$self" ] && [ "$hops" -lt 40 ]; do
|
|
|
39
57
|
*) self=${self%/*}/$link ;;
|
|
40
58
|
esac
|
|
41
59
|
done
|
|
60
|
+
if [ -n "$caller_path_set" ]; then PATH=$caller_path; else unset PATH; fi
|
|
42
61
|
# The walk has to end at a regular file. Running out of hops leaves $self a
|
|
43
62
|
# symlink; a chain that changed under us can leave it dangling or a directory, and
|
|
44
63
|
# a failed readlink leaves a trailing slash. Each case would take `pnpm` from the
|