Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix filter-prod flag including all workspace pkgs #4957

Closed
wants to merge 1 commit into from

Conversation

maxwellium
Copy link
Contributor

f48d46e appears to have surfaced a regression where the exclusion filter for workspace root broke was inserted without followProdDepsOnly. i guess we didn't notice earlier because filterProd together with workspaceRoot is an edge-case ;)

pnpm@f48d46e appears to have surfaced a regression where the exclusion filter for workspace root broke was inserted without followProdDepsOnly. i guess we didn't notice earlier because filterProd together with workspaceRoot is an edge-case ;)
@maxwellium maxwellium requested a review from zkochan as a code owner June 30, 2022 11:10
@welcome
Copy link

welcome bot commented Jun 30, 2022

💖 Thanks for opening this pull request! 💖
Please be patient and we will get back to you as soon as we can.

@zkochan
Copy link
Member

zkochan commented Jun 30, 2022

I am not sure what the issue is. Add a test, please.

@noorulh06
Copy link
Contributor

noorulh06 commented Sep 27, 2022

Any updates on this?
I am also facing the same issue.
My Project looks like:

  • ui
    • apps
      • guest
      • editor
    • pkgs
      • widgets
      • builder

builder is added as devDependency in ui/apps/guest but as a dependency of ui/apps/editor. When I use pnpm --filter ...builder exec node -e 'console.log(require(./package.json).name)' I get both guest and editor, but when I tried pnpm --filter-prod ...builder exec node -e 'console.log(require(./package.json).name)' I am getting all the packages where it should only print editor and builder.

@noorulh06
Copy link
Contributor

Also will it be fine if I create a new PR for this issue?

@zkochan
Copy link
Member

zkochan commented Sep 27, 2022

ok, just add a test.

@noorulh06
Copy link
Contributor

I have wrote the test case but getting lint errors in untouched files while pushing the changes. Should I ignore that lint rule for the project?
There are total 125 of the following error:
error Invalid type "any" of template literal expression @typescript-eslint/restrict-template-expressions

@noorulh06
Copy link
Contributor

Screenshot 2022-10-01 at 3 03 46 PM

@zkochan
Copy link
Member

zkochan commented Oct 1, 2022

Maybe you need to run pnpm -w compile.
but in any case, you can git push --no-verify

@zkochan
Copy link
Member

zkochan commented Oct 1, 2022

covered by #5437

@zkochan zkochan closed this Oct 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants