Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

pnpm ls equivalent for Turborepo #4035

Closed
maschwenk opened this issue Mar 1, 2023 · 3 comments
Closed

pnpm ls equivalent for Turborepo #4035

maschwenk opened this issue Mar 1, 2023 · 3 comments

Comments

@maschwenk
Copy link
Contributor

maschwenk commented Mar 1, 2023

Which project is this feature idea for?

Turborepo

Describe the feature you'd like to request

pnpm has trouble understanding that lockfile changes can affect packages even if the package source code does not change pnpm/pnpm#4420

From my understanding of this issue, Turborepo can understand that relationship #3250

I'd like to lean on Turbo as the canonical "change detector"

Unfortunately, Turborepo requires all tasks to have a pacakge.json script associated with them. This would require us to either:

  1. Setup a "dummy" script for each package that is a no-op but will allow us to navigate the DAG
  2. Add a build script to scripts that don't really have a build step, just to ensure it's always included

Describe the solution you'd like

More generally, it would be nice to have a way to understand Turbo's view of the DAG divorced from any particular task.

Describe alternatives you've considered

Not sure

@maschwenk maschwenk added needs: triage New issues get this label. Remove it after triage story labels Mar 1, 2023
@ArnaudRinquin
Copy link

Wouldn't the --dry argument cover your case?

@arlyon
Copy link
Contributor

arlyon commented Mar 11, 2023

I have run into this as well, wanting to get information about packages in the context of the repo rather than in the context of a particular task. --dry would help if every package happens to share a common task (such as typechecking ... 😏) but I agree that assuming that wouldn't always make sense. I will feed this back and get a timeline.

Thanks for taking the time to open an issue.

@arlyon arlyon added area: turborepo and removed needs: triage New issues get this label. Remove it after triage labels Mar 11, 2023
@maschwenk
Copy link
Contributor Author

Wouldn't the --dry argument cover your case?

Using dry requires that every package in the repo has the script in question. I'd like to use turbo as a replacement for my use of pnpm ls. As mentioned above, pnpm is not a clever about change detection in certain situations, whereas Turborepo can be.

@vercel vercel locked and limited conversation to collaborators Feb 22, 2024
@anthonyshew anthonyshew converted this issue into discussion #7482 Feb 22, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

6 participants