File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ async function main() {
1313 const cli = cac ( 'tab' ) ;
1414
1515 const args = process . argv . slice ( 2 ) ;
16+
1617 if ( args . length >= 2 && args [ 1 ] === 'complete' ) {
1718 const packageManager = args [ 0 ] ;
1819
@@ -70,9 +71,12 @@ async function main() {
7071
7172function generateCompletionScript ( packageManager : string , shell : string ) {
7273 const name = packageManager ;
74+ console . error ( 'DEBUG: npm_execpath =' , process . env . npm_execpath ) ;
75+ console . error ( 'DEBUG: process.argv[1] =' , process . argv [ 1 ] ) ;
7376 const executable = process . env . npm_execpath
7477 ? `${ packageManager } exec @bombsh/tab ${ packageManager } `
7578 : `node ${ process . argv [ 1 ] } ${ packageManager } ` ;
79+ console . error ( 'DEBUG: executable =' , executable ) ;
7680 script ( shell as any , name , executable ) ;
7781}
7882
You can’t perform that action at this time.
0 commit comments