Skip to content

Scripts from dependencies don't have access to their own dependencies binaries with PnP #6709

@arcanis

Description

@arcanis

Do you want to request a feature or report a bug?

Repro:

$> yarn add --pnp canvas

This is because we obtain the list of dependencies using config.lockfileFolder in makeEnv, but since the dependencies are located inside their own folders (in the unplugged directory) Yarn doesn't see the real project as being the lockfileFolder - so it cannot find the .pnp.js file.

Cf:

/private/tmp/canvas/.pnp/unplugged/npm-canvas-2.1.0-9abbfee6051b16666332ad0a8a2fd142e29039a1/node_modules/canvas/.pnp.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions