File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 33
44const { resolve } = require ( 'path' )
55const fs = require ( 'graceful-fs' )
6- const { spawn } = require ( 'child_process' )
6+ const cp = require ( 'child_process' )
77const completion = require ( '../utils/completion/installed-shallow.js' )
88const BaseCommand = require ( '../base-command.js' )
99
@@ -57,7 +57,8 @@ class Edit extends BaseCommand {
5757 return reject ( err )
5858 }
5959 const [ bin , ...args ] = this . npm . config . get ( 'editor' ) . split ( / \s + / )
60- const editor = spawn ( bin , [ ...args , dir ] , { stdio : 'inherit' } )
60+ console . log ( `spawn ${ bin } ` )
61+ const editor = cp . spawn ( bin , [ ...args , dir ] , { stdio : 'inherit' } )
6162 editor . on ( 'exit' , ( code ) => {
6263 if ( code ) {
6364 return reject ( new Error ( `editor process exited with code: ${ code } ` ) )
You can’t perform that action at this time.
0 commit comments