From cc727797f9287b0e44b2a2cb7ddbc92a27adb522 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Sun, 30 Jan 2022 17:21:32 +0200 Subject: [PATCH] fix(core): add publicHoistPattern to the fields of InstallOptions --- .changeset/rich-moose-cross.md | 5 +++++ packages/core/src/install/extendInstallOptions.ts | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/rich-moose-cross.md diff --git a/.changeset/rich-moose-cross.md b/.changeset/rich-moose-cross.md new file mode 100644 index 0000000000..51785cd28a --- /dev/null +++ b/.changeset/rich-moose-cross.md @@ -0,0 +1,5 @@ +--- +"@pnpm/core": patch +--- + +Add `publicHoistPattern` to the fields of `InstallOptions`. diff --git a/packages/core/src/install/extendInstallOptions.ts b/packages/core/src/install/extendInstallOptions.ts index c5392226b3..4751c315a3 100644 --- a/packages/core/src/install/extendInstallOptions.ts +++ b/packages/core/src/install/extendInstallOptions.ts @@ -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,