From b77651d14d89d1b337a0510a703b3046563f7b17 Mon Sep 17 00:00:00 2001 From: await-ovo <13152410380@163.com> Date: Wed, 21 Dec 2022 06:44:33 +0800 Subject: [PATCH] feat: add pnpm.requiredScripts config (#5802) close #5569 Co-authored-by: Zoltan Kochan --- .changeset/bright-deers-return.md | 7 +++ .../src/runRecursive.ts | 13 +++++ .../test/runRecursive.ts | 48 +++++++++++++++++++ packages/types/src/package.ts | 1 + 4 files changed, 69 insertions(+) create mode 100644 .changeset/bright-deers-return.md diff --git a/.changeset/bright-deers-return.md b/.changeset/bright-deers-return.md new file mode 100644 index 00000000000..db68c37bc82 --- /dev/null +++ b/.changeset/bright-deers-return.md @@ -0,0 +1,7 @@ +--- +"@pnpm/plugin-commands-script-runners": minor +"@pnpm/types": minor +"pnpm": minor +--- + +New setting supported in the `package.json` that is in the root of the workspace: `pnpm.requiredScripts`. Scripts listed in this array will be required in each project of the worksapce. Otherwise, `pnpm -r run