/**
 * @param {string[]} argv
 * @param {NodeJS.ProcessEnv} env
 */
export function resolveIsProduction(argv = process.argv, env = process.env) {
  return env.NODE_ENV === 'production' || argv.includes('--production');
}

/** @param {string[]} argv */
export function resolveObfuscateMain(argv = process.argv) {
  return argv.includes('--obfuscate');
}
