aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/concurrently/dist/src/get-spawn-opts.js
blob: 9b48af5fbd7c8e4395ab7cc447d2b1edb370472b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage