-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): update dependency dotenv-expand to v11 (#15875)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: bluwy <[email protected]>
- Loading branch information
1 parent
d16ce5d
commit 642d528
Showing
5 changed files
with
12 additions
and
32 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,7 +125,6 @@ | |
}, | ||
"patchedDependencies": { | ||
"[email protected]": "patches/[email protected]", | ||
"[email protected]": "patches/[email protected]", | ||
"[email protected]": "patches/[email protected]" | ||
}, | ||
"peerDependencyRules": { | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import fs from 'node:fs' | ||
import path from 'node:path' | ||
import { parse } from 'dotenv' | ||
import { expand } from 'dotenv-expand' | ||
import { type DotenvPopulateInput, expand } from 'dotenv-expand' | ||
import { arraify, normalizePath, tryStatSync } from './utils' | ||
import type { UserConfig } from './config' | ||
|
||
|
@@ -49,9 +49,10 @@ export function loadEnv( | |
process.env.BROWSER_ARGS = parsed.BROWSER_ARGS | ||
} | ||
|
||
// let environment variables use each other | ||
// `expand` patched in patches/[email protected] | ||
expand({ parsed }) | ||
// let environment variables use each other. make a copy of `process.env` so that `dotenv-expand` | ||
// doesn't re-assign the expanded values to the global `process.env`. | ||
const processEnv = { ...process.env } as DotenvPopulateInput | ||
expand({ parsed, processEnv }) | ||
|
||
// only keys that start with prefix are exposed to client | ||
for (const [key, value] of Object.entries(parsed)) { | ||
|
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.