Skip to content

Commit 8c37646

Browse files
committed
update to dotenvx
1 parent 2ff1719 commit 8c37646

3 files changed

Lines changed: 151 additions & 8 deletions

File tree

package-lock.json

Lines changed: 146 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"test:ui": "vitest --ui --api 9527",
2020
"test:cov": "vitest run --coverage",
2121
"typecheck": "tsc",
22-
"validate": "npm run typecheck && npm run check && npm run test && npm run check:unused",
22+
"validate": "npm run check && npm run typecheck && npm run test && npm run check:unused",
2323
"check": "biome check .",
2424
"check:fix": "biome check --fix .",
2525
"check:unused": "knip"
@@ -39,13 +39,13 @@
3939
"react": "^18.3.1",
4040
"react-dom": "^18.3.1",
4141
"react-i18next": "^15.0.2",
42-
"remix-custom-routes": "^1.0.1",
4342
"remix-i18next": "^6.4.1",
4443
"tailwind-merge": "^2.5.2",
4544
"zod": "^3.23.8"
4645
},
4746
"devDependencies": {
4847
"@biomejs/biome": "^1.9.2",
48+
"@dotenvx/dotenvx": "^1.14.1",
4949
"@remix-run/dev": "^2.12.1",
5050
"@types/node": "^22.6.1",
5151
"@types/prompt": "^1.1.9",
@@ -55,8 +55,6 @@
5555
"@vitest/ui": "^2.1.1",
5656
"autoprefixer": "^10.4.20",
5757
"chalk": "^5.3.0",
58-
"dotenv": "^16.4.5",
59-
"glob": "^11.0.0",
6058
"happy-dom": "^15.7.4",
6159
"knip": "^5.30.5",
6260
"lefthook": "^1.7.16",
@@ -77,4 +75,4 @@
7775
"engines": {
7876
"node": ">=20.0.0"
7977
}
80-
}
78+
}

scripts/setup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { spawn } from "node:child_process"
2+
import dotenvx from "@dotenvx/dotenvx"
23
import chalk from "chalk"
3-
import dotenv from "dotenv"
44
import prompt from "prompt"
55
// add all the env you wish here
66
const ENVIRONMENTS = ["stage", "prod", "test"]
@@ -18,7 +18,7 @@ const getEnvInfo = () => {
1818
const setupEnv = () => {
1919
const { envName, path } = getEnvInfo()
2020
console.log(chalk.green(`Loading environment: ${envName}`))
21-
dotenv.config({ path })
21+
dotenvx.config({ path })
2222
console.log(`Environment loaded: ${chalk.green(envName)} from ${chalk.green(path)}`)
2323
}
2424

0 commit comments

Comments
 (0)