diff --git a/.travis.yml b/.travis.yml index c749c259..df4a087a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,6 @@ os: - windows node_js: - - "8" - "10" - "12" diff --git a/appveyor.yml b/appveyor.yml index 977b7d35..425ad85a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -3,7 +3,6 @@ # Test against these versions of Node.js. environment: matrix: - - nodejs_version: "8" - nodejs_version: "10" - nodejs_version: "12" diff --git a/tests/test-config-cli.js b/tests/test-config-cli.js index c7ad3d02..5c9a8beb 100644 --- a/tests/test-config-cli.js +++ b/tests/test-config-cli.js @@ -27,24 +27,34 @@ t.plan(3) // dotenv/config enables preloading t.equal( - spawn([ - '-r', - '../config', - '-e', - 'console.log(process.env.BASIC)', - 'dotenv_config_encoding=utf8', - 'dotenv_config_path=./tests/.env' - ]), + spawn( + [ + '-r', + './config', + '-e', + 'console.log(process.env.BASIC)', + 'dotenv_config_encoding=utf8', + 'dotenv_config_path=./tests/.env' + ] + ), 'basic\n' ) // dotenv/config supports configuration via environment variables t.equal( - spawn(['-r', '../config', '-e', 'console.log(process.env.BASIC)'], { - env: { - DOTENV_CONFIG_PATH: './tests/.env' + spawn( + [ + '-r', + './config', + '-e', + 'console.log(process.env.BASIC)' + ], + { + env: { + DOTENV_CONFIG_PATH: './tests/.env' + } } - }), + ), 'basic\n' ) @@ -53,7 +63,7 @@ t.equal( spawn( [ '-r', - '../config', + './config', '-e', 'console.log(process.env.BASIC)', 'dotenv_config_path=./tests/.env' diff --git a/types/index.d.ts b/types/index.d.ts index 23f05f69..a83184cc 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -55,12 +55,5 @@ export interface DotenvConfigOutput { * */ export function config(options?: DotenvConfigOptions): DotenvConfigOutput; - -/** dotenv library interface */ -export interface DotEnv { - config: typeof config; - parse: typeof parse; -} - /** @deprecated since v7.0.0 Use config instead. */ export const load: typeof config; diff --git a/types/test.ts b/types/test.ts index 84b17601..bce09209 100644 --- a/types/test.ts +++ b/types/test.ts @@ -1,9 +1,4 @@ -import * as dotenv from "dotenv"; - -const { config, parse }: dotenv.DotEnv = { - config: dotenv.config, - parse: dotenv.parse -}; +import { config, parse } from "dotenv"; const env = config(); const dbUrl: string | null =