"use strict";

var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");

var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");

_Object$defineProperty(exports, "__esModule", {
  value: true
});

exports.default = void 0;

var _stringify = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/json/stringify"));

var _path = require("path");

const pkg = require((0, _path.resolve)(process.cwd(), './package.json'));

const isTEST = env => (0, _stringify.default)(env === 'testing');

const isDEV = env => (0, _stringify.default)(env !== 'production');

const isPROD = env => (0, _stringify.default)(env === 'production');

var _default = env => ({
  '__DEV__': isDEV(env),
  '__TEST__': isTEST(env),
  '__PROD__': isPROD(env),
  '__VERSION__': (0, _stringify.default)(pkg.version),
  '__BUILD__': (0, _stringify.default)(process.env.BUILD_VERSION),
  '__AUTHOR__': (0, _stringify.default)(pkg.author),
  '__LICENSE__': (0, _stringify.default)(pkg.license),
  '__DEPENDENCIES__': (0, _stringify.default)(pkg.dependencies),
  '__RESOLUTIONS__': (0, _stringify.default)(pkg.resolutions),
  'process.env.NODE_ENV': (0, _stringify.default)(env),
  'process.env.BABEL_ENV': (0, _stringify.default)(env),
  'process.env.SERVER_ENV': (0, _stringify.default)(env),
  'COSMIC_PATH': (0, _stringify.default)(process.env.COSMIC_PATH)
});

exports.default = _default;
module.exports = exports.default;