nx-mesh
Version:
GraphQL Mesh support for Nx
20 lines • 575 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCliEnv = void 0;
/**
* Get a list of Env variables that can be passed to the
* GraphQL Mesh CLI.
*/
const getCliEnv = (options) => {
const CliEnv = {};
Object.keys(options).forEach((key) => {
const value = options[key];
const cliKey = key.toUpperCase();
if (key === 'debug' && value !== undefined) {
CliEnv[cliKey] = (+value).toString();
}
});
return CliEnv;
};
exports.getCliEnv = getCliEnv;
//# sourceMappingURL=env.js.map