Skip to content

Accessing bin script wrappers in Yarn 3 PnP #4442

Answered by wkhughes
wkhughes asked this question in Q&A
Discussion options

You must be logged in to vote

I found it's possible to use the BERRY_BIN_FOLDER environment variable within a script under yarn run to have access to the temp folder with the bin files and wrapper (.cmd) scripts.

Specifically within a powershell script I do something like this:

$tsProtoPluginPath = Join-Path $Env:BERRY_BIN_FOLDER "protoc-gen-ts_proto.cmd"

Which I then pass to protoc.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by wkhughes
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants