Skip to content

Commit

Permalink
chore(cli): symlink in local packages for the installed sanity cli (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sgulseth committed May 21, 2024
1 parent efe8bca commit c4b8558
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/@sanity/cli/test/shared/globalSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c4b8558

Please sign in to comment.