Add configuration option to configure .store folder in pnpm mode #6710
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This changes adds a configuration option to configure
node_modules/.store
folder when usingnodeLinker: pnpm
.It adds an option
pnpmStoreFolder
to .yarnrc.yml which will be used when installing with pnpm Mode.What's the problem this PR addresses?
In our CI system we run a few copies of js repos for different architectures in parralel. We want to share the .store folder between the multiple runs, so we have to hoist it outside of the sourceroot.
This adds an option to configure this.
Resolves #6623
...
How did you fix it?
configuration
field toplugin-pnpm
that defines the new optionpnpmStoreFolder
I'm open to naming suggestions.
I just followed the pattern defined by
plugin-nm
of prefixing settings with the plugin name likenmHoistingLimits
,nmMode
&nmSelfReferences
. As well as byplugin-pnp
with settingpnpUnpluggedFolder
I followed the Folder suffix to match
cacheFolder
,patchFolder
,globalFolder
,virtualFolder
&pnpUnpluggedFolder
.getStoreLocation(project: Project)
to get the setting from the configuration rather than a hardcoded default....
Checklist