Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'use strict';
const buntstift = require('buntstift').default,
chokidar = require('chokidar');
const noop = require('./noop');
let isCurrentlyExecuting = false;
const watchFilesAndExecute = async function ({ message, files, execute, executeOnStart = false }) {
if (!message) {
throw new Error('Message is missing.');
}
if (!files) {
throw new Error('Files are missing.');
}
if (!execute) {
throw new Error('Execute is missing.');
}