UNPKG

@intlayer/config

Version:

Retrieve Intlayer configurations and manage environment variables for both server-side and client-side environments.

78 lines 2.73 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var content_exports = {}; __export(content_exports, { CONFIG_DIR: () => CONFIG_DIR, CONTENT_DIR: () => CONTENT_DIR, DICTIONARIES_DIR: () => DICTIONARIES_DIR, DICTIONARY_OUTPUT: () => DICTIONARY_OUTPUT, DYNAMIC_DICTIONARIES_DIR: () => DYNAMIC_DICTIONARIES_DIR, EXCLUDED_PATHS: () => EXCLUDED_PATHS, FILE_EXTENSIONS: () => FILE_EXTENSIONS, I18NEXT_DICTIONARIES_DIR: () => I18NEXT_DICTIONARIES_DIR, MAIN_DIR: () => MAIN_DIR, MODULE_AUGMENTATION_DIR: () => MODULE_AUGMENTATION_DIR, REACT_INTL_MESSAGES_DIR: () => REACT_INTL_MESSAGES_DIR, TYPES_DIR: () => TYPES_DIR, UNMERGED_DICTIONARIES_DIR: () => UNMERGED_DICTIONARIES_DIR, WATCH: () => WATCH }); module.exports = __toCommonJS(content_exports); const FILE_EXTENSIONS = [ ".content.ts", ".content.js", ".content.cjs", ".content.cjx", ".content.mjs", ".content.mjx", ".content.json", ".content.tsx", ".content.jsx" ]; const EXCLUDED_PATHS = ["node_modules"]; const CONTENT_DIR = ["src"]; const MAIN_DIR = ".intlayer/main"; const DICTIONARIES_DIR = ".intlayer/dictionary"; const UNMERGED_DICTIONARIES_DIR = ".intlayer/unmerged_dictionary"; const DYNAMIC_DICTIONARIES_DIR = ".intlayer/dynamic_dictionary"; const TYPES_DIR = ".intlayer/types"; const MODULE_AUGMENTATION_DIR = ".intlayer/types"; const DICTIONARY_OUTPUT = ["intlayer"]; const I18NEXT_DICTIONARIES_DIR = "i18next_resources"; const REACT_INTL_MESSAGES_DIR = "intl_messages"; const CONFIG_DIR = ".intlayer/config"; const WATCH = process.env.NODE_ENV === "development"; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { CONFIG_DIR, CONTENT_DIR, DICTIONARIES_DIR, DICTIONARY_OUTPUT, DYNAMIC_DICTIONARIES_DIR, EXCLUDED_PATHS, FILE_EXTENSIONS, I18NEXT_DICTIONARIES_DIR, MAIN_DIR, MODULE_AUGMENTATION_DIR, REACT_INTL_MESSAGES_DIR, TYPES_DIR, UNMERGED_DICTIONARIES_DIR, WATCH }); //# sourceMappingURL=content.cjs.map