Skip to content

Commit

Permalink
remove dotenv
Browse files Browse the repository at this point in the history
  • Loading branch information
eythaann committed Jun 26, 2024
1 parent 0d7412a commit 1b61611
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
13 changes: 0 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 0 additions & 4 deletions scripts/build.ts
Original file line number Diff line number Diff line change
@@ -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')
Expand All @@ -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,
}),
},
Expand Down

0 comments on commit 1b61611

Please sign in to comment.