File tree Expand file tree Collapse file tree 5 files changed +29
-9
lines changed
Expand file tree Collapse file tree 5 files changed +29
-9
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env node
2- import dotenv from "dotenv" ;
3- dotenv . config ( { quiet : true } ) ;
2+
3+ // Load .env file if it exists (quiet - no error if missing)
4+ try {
5+ process . loadEnvFile ( ) ;
6+ }
7+ catch {
8+ // .env file not found or not readable - ignore silently
9+ }
410
511// Import Node.js Dependencies
612import path from "node:path" ;
Original file line number Diff line number Diff line change 108108 "@topcli/pretty-json" : " ^1.0.0" ,
109109 "@topcli/prompts" : " ^2.0.0" ,
110110 "@topcli/spinner" : " ^4.0.0" ,
111- "dotenv" : " ^17.0.0" ,
112111 "filenamify" : " ^7.0.0" ,
113112 "highlightjs-line-numbers.js" : " ^2.8.0" ,
114113 "ini" : " ^6.0.0" ,
Original file line number Diff line number Diff line change 1- import dotenv from "dotenv" ;
2- dotenv . config ( { quiet : true } ) ;
1+ // Load .env file if it exists (quiet - no error if missing)
2+ try {
3+ process . loadEnvFile ( ) ;
4+ }
5+ catch {
6+ // .env file not found or not readable - ignore silently
7+ }
38
49// Import Node.js Dependencies
510import fs from "node:fs" ;
Original file line number Diff line number Diff line change 1- import dotenv from "dotenv" ;
2- dotenv . config ( { quiet : true } ) ;
1+ // Load .env file if it exists (quiet - no error if missing)
2+ try {
3+ process . loadEnvFile ( ) ;
4+ }
5+ catch {
6+ // .env file not found or not readable - ignore silently
7+ }
38
49// Import Node.js Dependencies
510import { fileURLToPath } from "node:url" ;
Original file line number Diff line number Diff line change 1- import dotenv from "dotenv" ;
2- dotenv . config ( { quiet : true } ) ;
1+ // Load .env file if it exists (quiet - no error if missing)
2+ try {
3+ process . loadEnvFile ( ) ;
4+ }
5+ catch {
6+ // .env file not found or not readable - ignore silently
7+ }
38
49// Import Node.js Dependencies
510import { fileURLToPath } from "node:url" ;
You can’t perform that action at this time.
0 commit comments