@metacall/deploy
Version:
Tool for deploying into MetaCall FaaS platform.
14 lines (13 loc) • 532 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isInteractive = void 0;
const isInteractive = () => {
// Define this environment variable to allow tests to be interactive
// even if they run inside a non interactive tty
if (process.env.NODE_ENV === 'testing') {
return (process.env.METACALL_DEPLOY_INTERACTIVE === 'true' ||
process.env.METACALL_DEPLOY_INTERACTIVE === '1');
}
return process.stdin.isTTY === true;
};
exports.isInteractive = isInteractive;