From b723d0f3bb47c43244314a369d3837eb361e5d9d Mon Sep 17 00:00:00 2001 From: Sindre Gulseth Date: Tue, 21 May 2024 14:59:10 +0200 Subject: [PATCH] chore(cli): symlink in local packages for the installed sanity cli --- packages/@sanity/cli/test/shared/globalSetup.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/@sanity/cli/test/shared/globalSetup.ts b/packages/@sanity/cli/test/shared/globalSetup.ts index c5231a9bb96..1f02318cb5b 100644 --- a/packages/@sanity/cli/test/shared/globalSetup.ts +++ b/packages/@sanity/cli/test/shared/globalSetup.ts @@ -176,6 +176,9 @@ async function installAndVerifyPackedCli({ await readFile(path.join(__dirname, '..', '..', 'package.json'), 'utf8'), await exec(npmPath, ['install', packedFilePath], {cwd: cliInstallPath}), ]) + await exec(nodePath, [SYMLINK_SCRIPT, cliInstallPath], { + cwd: cliInstallPath, + }) // Ensure the referenced binary exists const version = execFileSync(cliBinPath, ['--version'], {encoding: 'utf8'}).trim()