File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,9 @@ function cliLink( options ) {
47
47
[
48
48
{
49
49
title : chalkJetpackGreen ( `Enabling global access to the CLI` ) ,
50
- task : ( ) => command ( 'pnpm link' , options . v , path . resolve ( 'tools/cli' ) ) ,
50
+ // Theoretically we shouldn't need the --global as of v10.0, but there was a bug until 10.5.
51
+ // It shouldn't hurt to leave this.
52
+ task : ( ) => command ( 'pnpm link --global' , options . v , path . resolve ( 'tools/cli' ) ) ,
51
53
} ,
52
54
] ,
53
55
opts
@@ -87,7 +89,9 @@ function cliUnlink( options ) {
87
89
[
88
90
{
89
91
title : chalkJetpackGreen ( `Removing global access to the CLI` ) ,
90
- task : ( ) => command ( 'pnpm unlink' , options . v , path . resolve ( 'tools/cli' ) ) ,
92
+ // In theory unlink should work, but it doesn't (and there are dozens of issues related
93
+ // to link/unlink in the pnpm repo. This works well.
94
+ task : ( ) => command ( 'pnpm uninstall --global jetpack-cli' , options . v ) ,
91
95
} ,
92
96
] ,
93
97
opts
You can’t perform that action at this time.
0 commit comments