- 5a11c8bac:
pnpm dlx
will now support version specifiers for packages. E.g.pnpm dlx create-svelte@next
#4023.
- 002778559: New setting added:
scriptsPrependNodePath
. This setting can betrue
,false
, orwarn-only
. Whentrue
, the path to thenode
executable with which pnpm executed is prepended to thePATH
of the scripts. Whenwarn-only
, pnpm will print a warning if the scripts run with anode
binary that differs from thenode
binary executing the pnpm CLI.
- Updated dependencies [002778559]
- @pnpm/config@13.5.0
- @pnpm/lifecycle@12.1.0
- @pnpm/cli-utils@0.6.32
- eede95c5c:
pnpm exec
should exit with the exit code of the child process. This fixes a regression introduced in pnpm v6.20.4 via #3951.
-
435626ad3: Added
--reverse
option support topnpm exec
#3984.Usage example:
pnpm --reverse -r exec pwd
- @pnpm/cli-utils@0.6.31
- Updated dependencies [302ae4f6f]
- Updated dependencies [fa03cbdc8]
- @pnpm/types@7.6.0
- @pnpm/lifecycle@12.0.2
- @pnpm/config@13.4.2
- @pnpm/cli-utils@0.6.30
- @pnpm/read-project-manifest@2.0.7
- @pnpm/sort-packages@2.1.3
- 8cde32987: Return the exit code instead of killing the process.
- Updated dependencies [5b90ab98f]
- @pnpm/lifecycle@12.0.1
- 0e17caf1d: Do not run pre/post scripts by default on recursive run.
- 7d7f6417f:
dlx
should be able to run scoped packages.
- Updated dependencies [4ab87844a]
- Updated dependencies [4ab87844a]
- Updated dependencies [37dcfceeb]
- Updated dependencies [4ab87844a]
- @pnpm/types@7.5.0
- @pnpm/lifecycle@12.0.0
- @pnpm/cli-utils@0.6.29
- @pnpm/config@13.4.1
- @pnpm/read-project-manifest@2.0.6
- @pnpm/sort-packages@2.1.2
- Updated dependencies [b6d74c545]
- @pnpm/config@13.4.0
- @pnpm/cli-utils@0.6.28
- Updated dependencies [bd7bcdbe8]
- @pnpm/config@13.3.0
- @pnpm/cli-utils@0.6.27
- Updated dependencies [5ee3b2dc7]
- @pnpm/config@13.2.0
- @pnpm/cli-utils@0.6.26
- @pnpm/cli-utils@0.6.25
- c83488d01: New command added: create.
pnpm create
is similar toyarn create
. - 1efaaf706:
pnpm dlx
supports the--silent
option.
- 091ff5f12: Add link to the docs into the help output of dlx and exec.
- Updated dependencies [4027a3c69]
- Updated dependencies [1efaaf706]
- @pnpm/config@13.1.0
- @pnpm/common-cli-options-help@0.7.1
- @pnpm/cli-utils@0.6.24
- Updated dependencies [4a4d42d8f]
- @pnpm/lifecycle@11.0.5
- Updated dependencies [fe5688dc0]
- Updated dependencies [c7081cbb4]
- Updated dependencies [c7081cbb4]
- @pnpm/common-cli-options-help@0.7.0
- @pnpm/config@13.0.0
- @pnpm/cli-utils@0.6.23
- Updated dependencies [d62259d67]
- @pnpm/config@12.6.0
- @pnpm/cli-utils@0.6.22
- 04b7f6086: Use safe-execa instead of execa to prevent binary planting attacks on Windows.
- Updated dependencies [6681fdcbc]
- @pnpm/config@12.5.0
- @pnpm/cli-utils@0.6.21
- @pnpm/cli-utils@0.6.20
- Updated dependencies [ede519190]
- @pnpm/config@12.4.9
- @pnpm/cli-utils@0.6.19
- 7f097f26f: Support for multiple
--package
parameters added forpnpm dlx
command
- @pnpm/config@12.4.8
- @pnpm/cli-utils@0.6.18
- Updated dependencies [655af55ba]
- @pnpm/config@12.4.7
- @pnpm/cli-utils@0.6.17
- b17096a36:
pnpm dlx
should not fail when pnpm has no write access to the CWD.
- 376c30485: New command added for running packages in a tempory environment:
pnpm dlx <command> ...
- bd442ecb5: fix: add "run" to NO_SCRIPT error example
- Updated dependencies [3fb74c618]
- @pnpm/config@12.4.6
- @pnpm/cli-utils@0.6.16
- Updated dependencies [051296a16]
- @pnpm/config@12.4.5
- @pnpm/cli-utils@0.6.15
- Updated dependencies [af8b5716e]
- @pnpm/config@12.4.4
- @pnpm/cli-utils@0.6.14
- Updated dependencies [b734b45ea]
- @pnpm/types@7.4.0
- @pnpm/cli-utils@0.6.13
- @pnpm/config@12.4.3
- @pnpm/lifecycle@11.0.4
- @pnpm/read-project-manifest@2.0.5
- @pnpm/sort-packages@2.1.1
- Updated dependencies [7af16a011]
- Updated dependencies [73c1f802e]
- @pnpm/lifecycle@11.0.3
- @pnpm/config@12.4.2
- @pnpm/cli-utils@0.6.12
- @pnpm/cli-utils@0.6.11
- 9476d5ac5:
pnpm exec
should work outside of Node.js projects.
- Updated dependencies [2264bfdf4]
- @pnpm/config@12.4.1
- @pnpm/cli-utils@0.6.10
- 691f64713: New required option added: cacheDir.
- Updated dependencies [25f6968d4]
- Updated dependencies [5aaf3e3fa]
- @pnpm/config@12.4.0
- @pnpm/cli-utils@0.6.9
- Updated dependencies [1442f8786]
- Updated dependencies [8e76690f4]
- @pnpm/sort-packages@2.1.0
- @pnpm/types@7.3.0
- @pnpm/cli-utils@0.6.8
- @pnpm/config@12.3.3
- @pnpm/lifecycle@11.0.2
- @pnpm/read-project-manifest@2.0.4
- 4add11a96:
pnpm exec
should be executed in the context of the current working directory.
- 06f127503:
--
is ignored, when it is passed in as the first parameter to the exec command. This is for backward compatibility.
- Updated dependencies [724c5abd8]
- @pnpm/types@7.2.0
- @pnpm/cli-utils@0.6.7
- @pnpm/config@12.3.2
- @pnpm/lifecycle@11.0.1
- @pnpm/read-project-manifest@2.0.3
- @pnpm/sort-packages@2.0.2
- a1a03d145: Import only the required functions from ramda.
- Updated dependencies [a1a03d145]
- @pnpm/config@12.3.1
- @pnpm/cli-utils@0.6.6
- a77a2005e:
pnpm exec
should exit with the exit code of the child process and should not print an error.
- 209c14235:
pnpm run
is passed through topnpm exec
when it detects a command that is not in the scripts.
- c1f137412:
pnpm exec
should addnode_modules/.bin
to the PATH. - c1f137412:
pnpm exec
should add the Node.js location to the PATH.
- Updated dependencies [84ec82e05]
- Updated dependencies [c2a71e4fd]
- Updated dependencies [84ec82e05]
- @pnpm/config@12.3.0
- @pnpm/common-cli-options-help@0.6.0
- @pnpm/cli-utils@0.6.5
- ff9714d78: Don't list the commands twice when
pnpm run
is executed in the root of a workspace.
- @pnpm/cli-utils@0.6.4
- @pnpm/cli-utils@0.6.3
- @pnpm/config@12.2.0
- Updated dependencies [e6a2654a2]
- @pnpm/lifecycle@11.0.0
- @pnpm/config@12.2.0
- Updated dependencies [05baaa6e7]
- Updated dependencies [dfdf669e6]
- Updated dependencies [97c64bae4]
- @pnpm/config@12.2.0
- @pnpm/common-cli-options-help@0.5.0
- @pnpm/types@7.1.0
- @pnpm/cli-utils@0.6.2
- @pnpm/lifecycle@10.0.1
- @pnpm/sort-packages@2.0.1
- ba5231ccf: New option added for:
enable-pre-post-scripts
. When it is set totrue
, lifecycle scripts with pre/post prefixes are automatically executed by pnpm.
- Updated dependencies [ba5231ccf]
- @pnpm/config@12.1.0
- @pnpm/cli-utils@0.6.1
- 97b986fbc: Node.js 10 support is dropped. At least Node.js 12.17 is required for the package to work.
- 34338d2d0: Arbitrary pre/post hooks for user-defined scripts (such as
prestart
) are not executed automatically. - 048c94871:
.pnp.js
renamed to.pnp.cjs
in order to force CommonJS.
- Updated dependencies [97b986fbc]
- Updated dependencies [78470a32d]
- Updated dependencies [aed712455]
- Updated dependencies [aed712455]
- @pnpm/cli-utils@0.6.0
- @pnpm/command@2.0.0
- @pnpm/common-cli-options-help@0.4.0
- @pnpm/config@12.0.0
- @pnpm/error@2.0.0
- @pnpm/lifecycle@10.0.0
- @pnpm/sort-packages@2.0.0
- @pnpm/types@7.0.0
- Updated dependencies [4f1ce907a]
- @pnpm/config@11.14.2
- @pnpm/cli-utils@0.5.4
- Updated dependencies [d853fb14a]
- Updated dependencies [4b3852c39]
- @pnpm/lifecycle@9.6.5
- @pnpm/config@11.14.1
- @pnpm/cli-utils@0.5.3
- @pnpm/config@11.14.0
- @pnpm/cli-utils@0.5.2
- Updated dependencies [3be2b1773]
- @pnpm/cli-utils@0.5.1
- Updated dependencies [a5e9d903c]
- Updated dependencies [cb040ae18]
- @pnpm/common-cli-options-help@0.3.1
- @pnpm/cli-utils@0.5.0
- @pnpm/config@11.14.0
- c4cc62506: Add '--reverse' flag for reversing the order of package executions during 'recursive run'
- Updated dependencies [c4cc62506]
- @pnpm/config@11.13.0
- @pnpm/cli-utils@0.4.51
- Updated dependencies [bff84dbca]
- @pnpm/config@11.12.1
- @pnpm/cli-utils@0.4.50
- @pnpm/cli-utils@0.4.49
- @pnpm/cli-utils@0.4.48
- Updated dependencies [9a9bc67d2]
- @pnpm/lifecycle@9.6.4
- Updated dependencies [9ad8c27bf]
- Updated dependencies [548f28df9]
- Updated dependencies [548f28df9]
- @pnpm/types@6.4.0
- @pnpm/cli-utils@0.4.47
- @pnpm/config@11.12.0
- @pnpm/lifecycle@9.6.3
- @pnpm/sort-packages@1.0.16
- @pnpm/config@11.11.1
- @pnpm/cli-utils@0.4.46
- Updated dependencies [f40bc5927]
- @pnpm/config@11.11.0
- @pnpm/cli-utils@0.4.45
- Updated dependencies [425c7547d]
- @pnpm/config@11.10.2
- @pnpm/cli-utils@0.4.44
- Updated dependencies [ea09da716]
- @pnpm/config@11.10.1
- @pnpm/cli-utils@0.4.43
- 9427ab392:
--no-bail
should work with non-recursiverun
commands as well. - Updated dependencies [1ec47db33]
- Updated dependencies [a8656b42f]
- @pnpm/common-cli-options-help@0.3.0
- @pnpm/config@11.10.0
- @pnpm/cli-utils@0.4.42
- Updated dependencies [041537bc3]
- @pnpm/config@11.9.1
- @pnpm/cli-utils@0.4.41
- Updated dependencies [8698a7060]
- @pnpm/config@11.9.0
- @pnpm/cli-utils@0.4.40
- Updated dependencies [fcc1c7100]
- @pnpm/config@11.8.0
- @pnpm/cli-utils@0.4.39
- Updated dependencies [0c5f1bcc9]
- @pnpm/error@1.4.0
- @pnpm/cli-utils@0.4.38
- @pnpm/config@11.7.2
- @pnpm/lifecycle@9.6.2
- @pnpm/cli-utils@0.4.37
- @pnpm/cli-utils@0.4.36
- Updated dependencies [b5d694e7f]
- @pnpm/types@6.3.1
- @pnpm/cli-utils@0.4.35
- @pnpm/config@11.7.1
- @pnpm/lifecycle@9.6.1
- @pnpm/sort-packages@1.0.15
- 50b360ec1: A new option added for specifying the shell to use, when running scripts: scriptShell.
- Updated dependencies [50b360ec1]
- @pnpm/config@11.7.0
- @pnpm/lifecycle@9.6.0
- @pnpm/cli-utils@0.4.34
- Updated dependencies [d54043ee4]
- @pnpm/types@6.3.0
- @pnpm/cli-utils@0.4.33
- @pnpm/config@11.6.1
- @pnpm/lifecycle@9.5.1
- @pnpm/sort-packages@1.0.14
- f591fdeeb: Scripts support Plug'n'Play.
- Updated dependencies [f591fdeeb]
- Updated dependencies [f591fdeeb]
- Updated dependencies [f591fdeeb]
- @pnpm/config@11.6.0
- @pnpm/lifecycle@9.5.0
- @pnpm/cli-utils@0.4.32
- @pnpm/cli-utils@0.4.31
- Updated dependencies [74914c178]
- @pnpm/config@11.5.0
- @pnpm/cli-utils@0.4.30
- Updated dependencies [203e65ac8]
- @pnpm/lifecycle@9.4.0
- 23cf3c88b: New option added:
shellEmulator
.
- Updated dependencies [23cf3c88b]
- @pnpm/config@11.4.0
- @pnpm/lifecycle@9.3.0
- @pnpm/cli-utils@0.4.29
- 092f8dd83: When a script is not found but is present in the workspace root, suggest to use
pnpm -w run
. - 092f8dd83:
pnpm run
prints all scripts from the root of the workspace. They may be executed usingpnpm -w run
.
- Updated dependencies [767212f4e]
- Updated dependencies [092f8dd83]
- Updated dependencies [092f8dd83]
- @pnpm/config@11.3.0
- @pnpm/common-cli-options-help@0.2.0
- @pnpm/cli-utils@0.4.28
- d11442a57: If a script is not found in the current project but is present in the root project of the workspace, notify the user about it in the hint of the error.
- @pnpm/lifecycle@9.2.5
- @pnpm/cli-utils@0.4.27
- @pnpm/cli-utils@0.4.26
- de61940a5: The start and stop script commands are removed. There is no reason to define separate handlers for shorthand commands as any unknown command is automatically converted to a script.
- de61940a5:
pnpm test|start|stop
support the same options aspnpm run test|start|stop
. - Updated dependencies [75a36deba]
- Updated dependencies [9f1a29ff9]
- @pnpm/error@1.3.1
- @pnpm/config@11.2.7
- @pnpm/cli-utils@0.4.25
- @pnpm/lifecycle@9.2.4
- Updated dependencies [ac0d3e122]
- @pnpm/config@11.2.6
- @pnpm/cli-utils@0.4.24
- Updated dependencies [972864e0d]
- @pnpm/config@11.2.5
- @pnpm/lifecycle@9.2.3
- @pnpm/cli-utils@0.4.23
- Updated dependencies [6d480dd7a]
- @pnpm/error@1.3.0
- @pnpm/cli-utils@0.4.22
- @pnpm/config@11.2.4
- Updated dependencies [13c18e397]
- @pnpm/config@11.2.3
- @pnpm/cli-utils@0.4.21
- Updated dependencies [3f6d35997]
- @pnpm/config@11.2.2
- @pnpm/cli-utils@0.4.20
- @pnpm/cli-utils@0.4.19
- @pnpm/cli-utils@0.4.18
- a2ef8084f: Use the same versions of dependencies across the pnpm monorepo.
- Updated dependencies [a2ef8084f]
- @pnpm/config@11.2.1
- @pnpm/lifecycle@9.2.2
- @pnpm/cli-utils@0.4.17
- Updated dependencies [ad69677a7]
- @pnpm/cli-utils@0.4.16
- @pnpm/config@11.2.0
- @pnpm/lifecycle@9.2.1
- @pnpm/cli-utils@0.4.15
- Updated dependencies [65b4d07ca]
- Updated dependencies [ab3b8f51d]
- @pnpm/config@11.1.0
- @pnpm/cli-utils@0.4.14
- 76aaead32:
run --silent <cmd>
should only print output of the command and nothing from pnpm. - Updated dependencies [76aaead32]
- @pnpm/lifecycle@9.2.0
- @pnpm/config@11.0.1
- @pnpm/cli-utils@0.4.13
- Updated dependencies [71aeb9a38]
- Updated dependencies [915828b46]
- @pnpm/config@11.0.0
- @pnpm/cli-utils@0.4.12
- @pnpm/config@10.0.1
- @pnpm/cli-utils@0.4.11
- 220896511: Remove common-tags from dependencies.
- Updated dependencies [db17f6f7b]
- Updated dependencies [1146b76d2]
- Updated dependencies [db17f6f7b]
- @pnpm/config@10.0.0
- @pnpm/types@6.2.0
- @pnpm/cli-utils@0.4.10
- @pnpm/lifecycle@9.1.3
- @pnpm/sort-packages@1.0.13
- Updated dependencies [71a8c8ce3]
- Updated dependencies [71a8c8ce3]
- @pnpm/types@6.1.0
- @pnpm/config@9.2.0
- @pnpm/cli-utils@0.4.9
- @pnpm/lifecycle@9.1.2
- @pnpm/sort-packages@1.0.12
- Updated dependencies [e934b1a48]
- @pnpm/cli-utils@0.4.8
- d3ddd023c: Update p-limit to v3.
- Updated dependencies [d3ddd023c]
- Updated dependencies [68d8dc68f]
- @pnpm/lifecycle@9.1.1
- @pnpm/cli-utils@0.4.7
-
ffddf34a8: Add new global option called
--stream
. When used, the output from child processes is streamed to the console immediately, prefixed with the originating package directory. This allows output from different packages to be interleaved. -
0e8daafe4: The
run
andexec
commands may use the--parallel
option.--parallel
completely disregards concurrency and topological sorting, running a given script immediately in all matching packages with prefixed streaming output. This is the preferred flag for long-running processes such as watch run over many packages.For example:
pnpm run --parallel watch
-
8094b2a62: A recursive run should not rerun the same package script which started the lifecycle event.
For instance, let's say one of the workspace projects has the following script:
"scripts": { "build": "pnpm run -r build" }
Running
pnpm run build
in this project should not start an infinite recursion.pnpm run -r build
in this case should runbuild
in all the workspace projects except the one that started the build.Related issue: #2528
-
Updated dependencies [ffddf34a8]
-
Updated dependencies [ffddf34a8]
-
Updated dependencies [8094b2a62]
- @pnpm/common-cli-options-help@0.2.0
- @pnpm/config@9.1.0
- @pnpm/lifecycle@9.1.0
- @pnpm/cli-utils@0.4.6
- @pnpm/sort-packages@1.0.11
- 7300eba86: Support if-present flag for recursive run
- Updated dependencies [242cf8737]
- Updated dependencies [da091c711]
- Updated dependencies [f35a3ec1c]
- Updated dependencies [e11019b89]
- Updated dependencies [802d145fc]
- Updated dependencies [45fdcfde2]
- Updated dependencies [e3990787a]
- @pnpm/config@9.0.0
- @pnpm/types@6.0.0
- @pnpm/lifecycle@9.0.0
- @pnpm/cli-utils@0.4.5
- @pnpm/command@1.0.1
- @pnpm/common-cli-options-help@0.1.6
- @pnpm/error@1.2.1
- @pnpm/sort-packages@1.0.10
- Updated dependencies [242cf8737]
- Updated dependencies [45fdcfde2]
- @pnpm/config@9.0.0-alpha.2
- @pnpm/cli-utils@0.4.5-alpha.2
- @pnpm/sort-packages@1.0.10-alpha.2
- Updated dependencies [da091c71]
- Updated dependencies [e3990787]
- @pnpm/types@6.0.0-alpha.0
- @pnpm/lifecycle@9.0.0-alpha.1
- @pnpm/cli-utils@0.4.5-alpha.1
- @pnpm/config@8.3.1-alpha.1
- @pnpm/sort-packages@1.0.10-alpha.1
- @pnpm/config@8.3.1-alpha.0
- @pnpm/cli-utils@0.4.5-alpha.0
- @pnpm/sort-packages@1.0.10-alpha.0
- 7300eba86: Support if-present flag for recursive run
- Updated dependencies [f35a3ec1c]
- @pnpm/lifecycle@8.2.0-alpha.0
- c80d4ba3c: Support if-present flag for recursive run
- Updated dependencies [2ec4c4eb9]
- @pnpm/lifecycle@8.2.0
- 907c63a48: Dependencies updated.
- @pnpm/cli-utils@0.4.4