Skip to content

Commit

Permalink
fix(deps): update dependency dotenv-expand to v10 (#14391)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red authored Sep 17, 2023
1 parent 2f60b9e commit d6bde8b
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 40 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@
}
},
"patchedDependencies": {
"dotenv-expand@9.0.0": "patches/dotenv-expand@9.0.0.patch",
"chokidar@3.5.3": "patches/chokidar@3.5.3.patch",
"sirv@2.0.3": "patches/sirv@2.0.3.patch"
"sirv@2.0.3": "patches/sirv@2.0.3.patch",
"dotenv-expand@10.0.0": "patches/dotenv-expand@10.0.0.patch"
},
"peerDependencyRules": {
"allowedVersions": {
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"debug": "^4.3.4",
"dep-types": "link:./src/types",
"dotenv": "^16.3.1",
"dotenv-expand": "^9.0.0",
"dotenv-expand": "^10.0.0",
"es-module-lexer": "^1.3.0",
"escape-html": "^1.0.3",
"estree-walker": "^3.0.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function createCjsConfig(isProduction: boolean) {
...Object.keys(pkg.dependencies),
...(isProduction ? [] : Object.keys(pkg.devDependencies)),
],
plugins: [...createNodePlugins(false, false, false), bundleSizeLimit(161)],
plugins: [...createNodePlugins(false, false, false), bundleSizeLimit(162)],
})
}

Expand Down
18 changes: 18 additions & 0 deletions patches/dotenv-expand@10.0.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
diff --git a/lib/main.js b/lib/main.js
index 79d973c22f06403bfee45ff122bd384841c30da8..9392de262140f8f336146bef2419794532e4170f 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -69,9 +69,10 @@ function expand (config) {
)
}

- for (const processKey in config.parsed) {
- environment[processKey] = config.parsed[processKey]
- }
+ // PATCH: don't write to process.env
+ // for (const processKey in config.parsed) {
+ // environment[processKey] = config.parsed[processKey]
+ // }

return config
}
29 changes: 0 additions & 29 deletions patches/dotenv-expand@9.0.0.patch

This file was deleted.

14 changes: 7 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d6bde8b

Please # to comment.