From 1b61611b68d1bc39745bbc3f865c27600db00a1a Mon Sep 17 00:00:00 2001 From: eythaann Date: Wed, 26 Jun 2024 13:49:17 -0500 Subject: [PATCH] remove dotenv --- package-lock.json | 13 ------------- package.json | 1 - scripts/build.ts | 4 ---- 3 files changed, 18 deletions(-) diff --git a/package-lock.json b/package-lock.json index b01aeb0f..009507f7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,7 +30,6 @@ "@types/react": "^18.2.56", "@types/react-dom": "^18.2.19", "antd": "^5.14.1", - "dotenv": "^16.4.5", "esbuild": "^0.20.1", "eslint": "^8.56.0", "eslint-plugin-simple-import-sort": "^12.0.0", @@ -3974,18 +3973,6 @@ "node": ">=6.0.0" } }, - "node_modules/dotenv": { - "version": "16.4.5", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", - "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://dotenvx.com" - } - }, "node_modules/electron-to-chromium": { "version": "1.4.748", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.748.tgz", diff --git a/package.json b/package.json index 579c024f..4e7f9f89 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,6 @@ "@types/react": "^18.2.56", "@types/react-dom": "^18.2.19", "antd": "^5.14.1", - "dotenv": "^16.4.5", "esbuild": "^0.20.1", "eslint": "^8.56.0", "eslint-plugin-simple-import-sort": "^12.0.0", diff --git a/scripts/build.ts b/scripts/build.ts index 291e7ed6..29feb5f6 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -1,10 +1,7 @@ -import { config as loadEnv } from 'dotenv'; import esbuild from 'esbuild'; import fs from 'fs'; import path from 'path'; -const { GITHUB_TOKEN: _, ...parsedEnv } = loadEnv().parsed!; - async function main() { const appFolders = fs .readdirSync('src/apps') @@ -19,7 +16,6 @@ async function main() { jsx: 'automatic', define: { 'process.env': JSON.stringify({ - ...(parsedEnv || {}), packageVersion: JSON.parse(fs.readFileSync('package.json', 'utf-8')).version, }), },