From f7f37f89f8c26933d79adf027bec2898ad06445d Mon Sep 17 00:00:00 2001 From: Bosco Domingo Date: Sat, 9 Nov 2024 20:23:34 +0100 Subject: [PATCH] chore: use `env-file-if-exists` --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index a05380f..55fc233 100644 --- a/package.json +++ b/package.json @@ -10,12 +10,12 @@ ], "private": true, "scripts": { - "start": "node --env-file=.env ./dist/src/app.js", - "dev": "tsx watch --clear-screen=false --env-file=.env ./src/app.ts", + "start": "node --env-file-if-exists=.env ./dist/src/app.js", + "dev": "tsx watch --clear-screen=false --env-file-if-exists=.env ./src/app.ts", "build": "tsc -p tsconfig.build.json", "lint": "biome check", "format": "biome check --write", - "test": "glob -c \"FASTIFY_AUTOLOAD_TYPESCRIPT=1 tsx --tsconfig ./test/tsconfig.json --env-file .env --env-file .env.test --test\" \"./test/**/*.test.ts\"" + "test": "glob -c \"FASTIFY_AUTOLOAD_TYPESCRIPT=1 tsx --tsconfig ./test/tsconfig.json --env-file-if-exists .env --env-file-if-exists .env.test --test\" \"./test/**/*.test.ts\"" }, "repository": { "type": "git",