 _ = require 'underscore-plus'
 ChildProcess = require 'child_process'
-{Emitter} = require 'emissary'
+{Emitter} = require 'event-kit'
 Grim = require 'grim'
 
 # Extended: Run a node script in a separate process.

  # * `callback` The {Function} to call when the event is emitted.
  #
  # Returns a {Disposable} that can be used to stop listening for the event.
  on: (eventName, callback) -> Emitter::on.call(this, eventName, callback)

  # Public: Forcefully stop the running task.
  #

  # * `taskPath` The {String} path to the CoffeeScript/JavaScript file that
  #   exports a single {Function} to execute.
  constructor: (taskPath) ->
    @emitter = new Emitter

    compileCacheRequire = "require('#{require.resolve('./compile-cache')}')"
    compileCachePath = require('./compile-cache').getCacheDirectory()
    taskBootstrapRequire = "require('#{require.resolve('./task-bootstrap')}');"
