fix(core): add publicHoistPattern to the fields of InstallOptions

This commit is contained in:
Zoltan Kochan
2022-01-30 17:21:32 +02:00
parent c0070f7606
commit cc727797f9
2 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"@pnpm/core": patch
---
Add `publicHoistPattern` to the fields of `InstallOptions`.

View File

@@ -84,6 +84,7 @@ export interface StrictInstallOptions {
modulesCacheMaxAge: number
peerDependencyRules: PeerDependencyRules
publicHoistPattern: string[] | undefined
hoistPattern: string[] | undefined
forceHoistPattern: boolean
@@ -113,6 +114,7 @@ const defaults = async (opts: InstallOptions) => {
forceSharedLockfile: false,
frozenLockfile: false,
hoistPattern: undefined,
publicHoistPattern: undefined,
hooks: {},
ignoreCurrentPrefs: false,
ignoreScripts: false,