fashion-show
Version:
Build consistent and versioned styleguides by including and running consistent lint files across projects.
16 lines (13 loc) • 408 B
JavaScript
var assign = require('object-assign');
var delimiter = require('path').delimiter;
/**
* Returns process.env with `options.binPath` prepended
* to the $PATH to ensure that the corrent lint binaries
* are used by `fashion-show`.
*/
module.exports = function (options) {
var env = assign({}, process.env, options.env);
env.PATH = options.binPath + delimiter + env.PATH;
return env;
};
;