diff --git a/ng-dev/misc/build-and-link/cli.ts b/ng-dev/misc/build-and-link/cli.ts index b3b5c21b8..5c0b873a6 100644 --- a/ng-dev/misc/build-and-link/cli.ts +++ b/ng-dev/misc/build-and-link/cli.ts @@ -55,8 +55,8 @@ async function handler({projectRoot}: Arguments) { Log.info(green(` ✓ Built release output.`)); for (const {outputPath, name} of builtPackages) { - await ChildProcess.spawn('yarn', ['link', '--cwd', outputPath]); - await ChildProcess.spawn('yarn', ['link', '--cwd', projectRoot, name]); + await ChildProcess.spawn('pnpm', ['--dir', outputPath, 'link', '--global']); + await ChildProcess.spawn('pnpm', ['--dir', projectRoot, 'link', '--global', name]); } Log.info(green(` ✓ Linked release packages in provided project.`)); @@ -68,5 +68,5 @@ export const BuildAndLinkCommandModule: CommandModule<{}, BuildAndLinkOptions> = handler, command: 'build-and-link ', describe: - 'Builds the release output, registers the outputs as linked, and links via yarn to the provided project', + 'Builds the release output, registers the outputs as linked, and links via pnpm to the provided project', };