"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.preProcessor = preProcessor;

var _runPreProcess = require("../../shared/pre_process/runPreProcess");

function preProcessor(options) {
  const {
    extraArgs = []
  } = options;
  const index = extraArgs.indexOf('-w');
  const canWatch = index !== -1;
  (0, _runPreProcess.runPreProcess)(options, canWatch ? 'nodemon' : 'node');
}