Skip to content

Commit 9f758f7

Browse files
committed
refactor(ng-dev): use pnpm instead of yarn
This is for the build-and-link command
1 parent 6a135f3 commit 9f758f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ng-dev/misc/build-and-link/cli.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ async function handler({projectRoot}: Arguments<BuildAndLinkOptions>) {
5555
Log.info(green(` ✓ Built release output.`));
5656

5757
for (const {outputPath, name} of builtPackages) {
58-
await ChildProcess.spawn('yarn', ['link', '--cwd', outputPath]);
59-
await ChildProcess.spawn('yarn', ['link', '--cwd', projectRoot, name]);
58+
await ChildProcess.spawn('pnpm', ['--dir', outputPath, 'link', '--global']);
59+
await ChildProcess.spawn('pnpm', ['--dir', projectRoot, 'link', '--global', name]);
6060
}
6161

6262
Log.info(green(` ✓ Linked release packages in provided project.`));
@@ -68,5 +68,5 @@ export const BuildAndLinkCommandModule: CommandModule<{}, BuildAndLinkOptions> =
6868
handler,
6969
command: 'build-and-link <projectRoot>',
7070
describe:
71-
'Builds the release output, registers the outputs as linked, and links via yarn to the provided project',
71+
'Builds the release output, registers the outputs as linked, and links via pnpm to the provided project',
7272
};

0 commit comments

Comments
 (0)