From 3c77408571817dded5dde032e4e189616d7d2cf4 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Wed, 8 Apr 2026 20:40:54 +0200 Subject: [PATCH] fix: disable lint rule for dynamic imports of registry.client --- installing/deps-installer/src/install/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/installing/deps-installer/src/install/index.ts b/installing/deps-installer/src/install/index.ts index e32cd47157..857a6896c7 100644 --- a/installing/deps-installer/src/install/index.ts +++ b/installing/deps-installer/src/install/index.ts @@ -1862,9 +1862,9 @@ async function installFromPnpmRegistry ( rootDir: ProjectRootDir, opts: Opts ): Promise { - // Lazy-import to avoid adding the dependency for users who don't use this feature - const { fetchFromPnpmRegistry } = await import('@pnpm/registry.client') - const { StoreIndex } = await import('@pnpm/store.index') + // Lazy-import to keep the dependency optional for users who don't use this feature + const { fetchFromPnpmRegistry } = await import('@pnpm/registry.client') // eslint-disable-line import-x/no-extraneous-dependencies + const { StoreIndex } = await import('@pnpm/store.index') // eslint-disable-line import-x/no-extraneous-dependencies // Read existing lockfile if available const existingLockfile = await readWantedLockfile(opts.lockfileDir ?? rootDir, {