Browse Source

chore(cli.js): remove useless `dotenv` dependency (#1718)

Lucas Fernandes Nogueira 4 năm trước cách đây
mục cha
commit
68e9a3fd10

+ 0 - 1
tooling/cli.js/.env.jest

@@ -1 +0,0 @@
-NODE_ENV=test

+ 0 - 1
tooling/cli.js/package.json

@@ -84,7 +84,6 @@
     "@typescript-eslint/eslint-plugin": "4.22.1",
     "@typescript-eslint/parser": "4.22.1",
     "babel-jest": "26.6.3",
-    "dotenv": "8.4.0",
     "eslint": "7.25.0",
     "eslint-config-prettier": "8.3.0",
     "eslint-config-standard-with-typescript": "20.0.0",

+ 0 - 2
tooling/cli.js/test/jest/jest.setup.js

@@ -5,5 +5,3 @@ global.Promise = require('promise')
 setTimeout(() => {
   // do nothing
 }, 1)
-
-require('dotenv').config({ path: '.env.jest' })

+ 0 - 5
tooling/cli.js/yarn.lock

@@ -3107,11 +3107,6 @@ dot-prop@^5.2.0:
   dependencies:
     is-obj "^2.0.0"
 
-dotenv@8.4.0:
-  version "8.4.0"
-  resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.4.0.tgz#08576a9d5dc63b4fc58df087015c768eb102e0f3"
-  integrity sha512-l+pIWjvRva0AhnLerv9VvpscgXa72iPW1qKlCgA7COzJA414vGQ/PMcOuNfR1CmQbK208WWYeVwQUa8yfuqH8Q==
-
 download@^6.2.2:
   version "6.2.5"
   resolved "https://registry.yarnpkg.com/download/-/download-6.2.5.tgz#acd6a542e4cd0bb42ca70cfc98c9e43b07039714"