question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Scenario / test fixture: Yarn PnP

See original GitHub issue

https://github.com/yarnpkg/pnp-sample-app

Should work like existing multiple-roots scenario.

Tasks:

  • The abstract dependency graph is not going to be automatically inferrable because everything is or or less flat.
    • Figure out if this is an actual problem and if we should do anything about it (docs, logic, special report, etc.)
    • Investigate if there is metadata from which we could recreate the abstract dependency graph. (Probably could from yarn.lock or package-lock.json if nothing else).

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ryan-roemercommented, Oct 31, 2018

Thanks for the comments and tips! And super looking forward to diving in and trying out PnP as a consumer on projects!!!

All in all, my intuition at a high level for this issue is that:

  1. My hunch is that inspectpack (CLI and webpack plugin) will work just fine with PnP’s approach (it really should for anything with node_modules in the source path, whether in one root location or multiply across disk).
  2. From the info above in this ticket, I’ll be able to create a reasonable approximation for a PnP test fixture, just won’t be able to create one that has duplicates from identical packages because that can’t happen by design 😛
0reactions
arcaniscommented, Oct 31, 2018

Yep, all that seems about right 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

test-fixture | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
Test Scenario: Yarn PnP · Issue #21 · FormidableLabs/trace-deps ...
Because Yarn PnP doesn't use the normal node_modules tree we need to check that: The general API works as expected; New feature allowMissing...
Read more >
Yarn PnP, npm tink, and pnpm Oh My | by Andrew Mc | Medium
For me it is easiest to test the speed. Running npx create-react-app without pnp enabled took 10.62 seconds. With it enabled that dropped...
Read more >
Post-v1 Roadmap: feedback wanted - RedwoodJS Community
Exploring Yarn 3 features (namely, pnp); Revive the RedwoodJS VSCode extension; Improving the contributing workflow; Better yarn create-redwood ...
Read more >
PNP Canada Live Tracker: which PNPs are open?
PNP Live Tracker Tool. Find PNP streams that may suit your situation, skills, and experience. You can filter by occupation, province, whether or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found