Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): call
pnpm run
without --
for pnpm v7
Starting in pnpm v7 all command line arguments after the script name are passed to a script's arguments when using `pnpm run <script>`, including `--`. This can cause problems when there are no command line arguments, because it will pass `--` without anything following, which some scripts can't handle. In order to preserve the old functionality, we check if the pnpm version is less than 7.0.0. If it is, we include `--` before the args, otherwise we don't. Closes #10111
- Loading branch information