1
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import {spawn} from 'node:child_process';
|
||||
import {existsSync, readFileSync} from 'node:fs';
|
||||
import {resolve} from 'node:path';
|
||||
|
||||
import {
|
||||
findAvailablePort,
|
||||
formatPortDecision,
|
||||
@@ -8,7 +9,11 @@ import {
|
||||
} from './dev-stack-port-utils.mjs';
|
||||
|
||||
const repoRoot = process.cwd();
|
||||
const shellEnvKeys = new Set(Object.keys(process.env));
|
||||
const shellEnvKeys = new Set(
|
||||
Object.entries(process.env)
|
||||
.filter(([, value]) => String(value ?? '').trim())
|
||||
.map(([key]) => key),
|
||||
);
|
||||
|
||||
function loadEnvFile(path, target) {
|
||||
if (!existsSync(path)) {
|
||||
|
||||
Reference in New Issue
Block a user