Skip to content

Commit b52a152

Browse files
committed
log what's spawned for ci failure
1 parent dd47238 commit b52a152

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/commands/edit.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
const { resolve } = require('path')
55
const fs = require('graceful-fs')
6-
const { spawn } = require('child_process')
6+
const cp = require('child_process')
77
const completion = require('../utils/completion/installed-shallow.js')
88
const 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}`))

0 commit comments

Comments
 (0)