From 6fe72da094251cbee009417da3f7b4ccc64f96ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Sat, 20 Jul 2024 14:08:51 +0200 Subject: [PATCH] refactor: use native Node.js support for env file (#102) --- package-lock.json | 12 ------------ package.json | 3 +-- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6875c4f..0982a19 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,6 @@ "better-sqlite3": "^9.6.0", "cron": "^3.1.7", "discord.js": "^14.15.1", - "dotenv": "^16.4.5", "got": "^14.2.1", "html-entities": "^2.5.2", "knex": "^3.1.0", @@ -2190,17 +2189,6 @@ "url": "https://github.com/fb55/domutils?sponsor=1" } }, - "node_modules/dotenv": { - "version": "16.4.5", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", - "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://dotenvx.com" - } - }, "node_modules/end-of-stream": { "version": "1.4.4", "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", diff --git a/package.json b/package.json index 14ed95d..7954d45 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "format": "prettier --write .", "lint": "eslint src --ext ts", "lint-fix": "npm run lint -- --fix", - "start": "nodemon --watch \"src/**/*.ts\" -e ts --exec \"node -r dotenv/config --import tsx/esm src/bot.ts\"", + "start": "nodemon --watch \"src/**/*.ts\" -e ts --exec \"node --env-file .env --import tsx/esm src/bot.ts\"", "test": "npm run test-only && npm run lint && npm run check-types && npm run check-format", "test-only": "vitest run", "test-coverage": "vitest run --coverage", @@ -29,7 +29,6 @@ "better-sqlite3": "^9.6.0", "cron": "^3.1.7", "discord.js": "^14.15.1", - "dotenv": "^16.4.5", "got": "^14.2.1", "html-entities": "^2.5.2", "knex": "^3.1.0",