diff options
Diffstat (limited to 'node_modules/concurrently/dist/src/get-spawn-opts.js')
| -rw-r--r-- | node_modules/concurrently/dist/src/get-spawn-opts.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/node_modules/concurrently/dist/src/get-spawn-opts.js b/node_modules/concurrently/dist/src/get-spawn-opts.js new file mode 100644 index 0000000..9b48af5 --- /dev/null +++ b/node_modules/concurrently/dist/src/get-spawn-opts.js @@ -0,0 +1,18 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getSpawnOpts = void 0; +const supports_color_1 = __importDefault(require("supports-color")); +const getSpawnOpts = ({ colorSupport = supports_color_1.default.stdout, cwd, process = global.process, raw = false, env = {}, }) => ({ + cwd: cwd || process.cwd(), + ...(raw && { stdio: 'inherit' }), + ...(/^win/.test(process.platform) && { detached: false }), + env: { + ...(colorSupport ? { FORCE_COLOR: colorSupport.level.toString() } : {}), + ...process.env, + ...env, + }, +}); +exports.getSpawnOpts = getSpawnOpts; |
