👁️🗨️
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export const log = ((c: Console) => { | |
| const log = (...args: unknown[]) => { | |
| if (!import.meta.env.PROD) c.log(...(args as any[])); | |
| }; | |
| log.warn = (...args: unknown[]) => { | |
| if (!import.meta.env.PROD) c.warn(...(args as any[])); | |
| }; | |
| log.debug = (...args: (boolean | number | string | object)[]) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // loadEnv.js | |
| const dotenv = require('dotenv'); | |
| const dotenvExpand = require('dotenv-expand').expand; | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const { execSync } = require('child_process'); | |
| // Функция для загрузки и расширения .env файлов с выводом для отладки | |
| function loadAndExpandEnv(envPaths) { | |
| envPaths.forEach(envPath => { |
OlderNewer