Skip to content

Commit a740499

Browse files
committed
chore: remove dotenv dependency
1 parent 1f5277b commit a740499

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

jest.setup.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require('dotenv/config');
21
const fs = require('fs');
32
const { CONFIG_PATH } = require('./src/constants');
43
const { socket } = require('./src/socket');

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
"@rollup/plugin-node-resolve": "^16.0.1",
4848
"@rollup/plugin-terser": "^0.4.4",
4949
"commander": "^14.0.0",
50-
"dotenv": "^16.5.0",
5150
"eslint": "^8.57.1",
5251
"eslint-config-airbnb-base": "^15.0.0",
5352
"eslint-plugin-import": "^2.31.0",
@@ -61,7 +60,7 @@
6160
"prebuild": "rm -rf dist",
6261
"build": "rollup --bundleConfigAsCjs -c",
6362
"start": "babel-node src/index.js",
64-
"test": "DOTENV_CONFIG_PATH=.env.test jest -i --setupFiles dotenv/config --forceExit"
63+
"test": "node --env-file=.env.test ./node_modules/.bin/jest -i --forceExit"
6564
},
6665
"jest": {
6766
"globalSetup": "./jest.setup.js",

src/socket.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'dotenv/config';
21
import fs from 'fs';
32
import net from 'net';
43
import { config } from './config';

0 commit comments

Comments
 (0)