Skip to content

Commit 92cf540

Browse files
committed
fix: use dotenvsafe to validate env vars
1 parent 1d11700 commit 92cf540

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

bun.lock

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@rollup/plugin-replace": "^5.0.5",
3333
"autoprefixer": "^10.4.20",
3434
"cross-env": "^7.0.3",
35-
"dotenv": "^16.3.1",
35+
"dotenv-safe": "^9.1.0",
3636
"esbuild": "^0.19.5",
3737
"postcss": "^8.4.47",
3838
"rollup": "^2.79.1",
@@ -45,7 +45,7 @@
4545
},
4646
"src/ts": {
4747
"name": "@navigraph/msfs-navigation-data-interface",
48-
"version": "1.1.2",
48+
"version": "1.2.0",
4949
"devDependencies": {
5050
"@microsoft/msfs-types": "^1.14.6",
5151
"tsup": "^8.4.0",
@@ -387,6 +387,8 @@
387387

388388
"dotenv": ["dotenv@16.4.7", "", {}, "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ=="],
389389

390+
"dotenv-safe": ["dotenv-safe@9.1.0", "", { "peerDependencies": { "dotenv": ">= 8.2.0" } }, "sha512-2qwVAnUN+EDpu41pIK1XiJpHXKHV9Dnti3cE1EnUXT1/BV5+B7xuSZtgZ/4LExkCpp5F6BGikraezQL+8hKCOA=="],
391+
390392
"eastasianwidth": ["eastasianwidth@0.2.0", "", {}, "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA=="],
391393

392394
"electron-to-chromium": ["electron-to-chromium@1.5.132", "", {}, "sha512-QgX9EBvWGmvSRa74zqfnG7+Eno0Ak0vftBll0Pt2/z5b3bEGYL6OUXLgKPtvx73dn3dvwrlyVkjPKRRlhLYTEg=="],

example/gauge/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@rollup/plugin-replace": "^5.0.5",
2020
"autoprefixer": "^10.4.20",
2121
"cross-env": "^7.0.3",
22-
"dotenv": "^16.3.1",
22+
"dotenv-safe": "^9.1.0",
2323
"esbuild": "^0.19.5",
2424
"postcss": "^8.4.47",
2525
"rollup": "^2.79.1",

example/gauge/rollup.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import resolve from "@rollup/plugin-node-resolve";
22
import replace from "@rollup/plugin-replace";
3-
import dotenv from "dotenv";
3+
import autoprefixer from "autoprefixer";
4+
import dotenvSafe from "dotenv-safe";
45
import copy from "rollup-plugin-copy";
56
import esbuild from "rollup-plugin-esbuild";
6-
import autoprefixer from "autoprefixer";
7-
import tailwind from "tailwindcss";
87
import postcss from "rollup-plugin-postcss";
8+
import tailwind from "tailwindcss";
99

10-
dotenv.config();
10+
dotenvSafe.config();
1111

1212
// eslint-disable-next-line no-undef
1313
const DEBUG = process.env.DEBUG === "true";

0 commit comments

Comments
 (0)