3

I'm migrating to pnpm to manage a monorepo from lerna. However, in the CI, there was a legacy command using the --since option of lerna.

lerna run lint --since origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME...

From what I understand, it allows you to run the tasks affected by the PR. What is the equivalent option for pnpm?

Tera Mind
  • 263
  • 4
  • 17

1 Answers1

1

Same option exists in PNPM using --filter "[<since>]":

pnpm --filter "...[origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME]" lint
Dinko Pehar
  • 5,454
  • 4
  • 23
  • 57