From 02666dbbffc38ca14d3f17b28eb3250cb3f69eb4 Mon Sep 17 00:00:00 2001 From: Scott Motte Date: Fri, 14 Jan 2022 14:20:19 -0800 Subject: [PATCH 1/4] Specify baseUrl option to prevent warning --- types/tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/types/tsconfig.json b/types/tsconfig.json index 21dc5284..a0a67f7f 100644 --- a/types/tsconfig.json +++ b/types/tsconfig.json @@ -4,6 +4,7 @@ "lib": ["es6"], "strict": true, "noEmit": true, + "baseUrl": ".", "paths": { "dotenv": ["../lib/main.d.ts"] } From b1a8eb03217e83144400bd51fb1a2a8a579f180c Mon Sep 17 00:00:00 2001 From: Scott Motte Date: Fri, 14 Jan 2022 14:21:15 -0800 Subject: [PATCH 2/4] Remove flow config --- .flowconfig | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 .flowconfig diff --git a/.flowconfig b/.flowconfig deleted file mode 100644 index 12c448cf..00000000 --- a/.flowconfig +++ /dev/null @@ -1,23 +0,0 @@ -[ignore] - -[include] - -[libs] - -[lints] -all=warn - -[options] -emoji=true -include_warnings=true - -[strict] -nonstrict-import -sketchy-null -unclear-type -unsafe-getters-setters -untyped-import -untyped-type-import - -[version] -^0.105.2 From 3a92814df45b53f963c98a883a51d991b30656a0 Mon Sep 17 00:00:00 2001 From: Scott Motte Date: Fri, 14 Jan 2022 14:45:50 -0800 Subject: [PATCH 3/4] Remove types folder and move type test(ish) under tests --- CHANGELOG.md | 2 +- package.json | 2 +- {types => tests/types}/test.ts | 0 tests/types/tsconfig.json | 17 +++++++++++++++++ types/tsconfig.json | 13 ------------- 5 files changed, 19 insertions(+), 15 deletions(-) rename {types => tests/types}/test.ts (100%) create mode 100644 tests/types/tsconfig.json delete mode 100644 types/tsconfig.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 04f73052..31acbcc8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,9 @@ All notable changes to this project will be documented in this file. See [standa ## [Unreleased](https://github.com/motdotla/dotenv/compare/v11.0.0...master) +- Move types/index.d.ts to lib/main.d.ts ([#585](https://github.com/motdotla/dotenv/pull/585)) - Remove flow ([#584](https://github.com/motdotla/dotenv/pull/584)) - ## [11.0.0](https://github.com/motdotla/dotenv/compare/v10.0.0...v11.0.0) (2022-01-11) ### Changed diff --git a/package.json b/package.json index a0427f0b..5821c13b 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "./package.json": "./package.json" }, "scripts": { - "dts-check": "tsc --project types/tsconfig.json", + "dts-check": "tsc --project tests/types/tsconfig.json", "lint": "standard", "postlint": "standard-markdown", "pretest": "npm run lint && npm run dts-check", diff --git a/types/test.ts b/tests/types/test.ts similarity index 100% rename from types/test.ts rename to tests/types/test.ts diff --git a/tests/types/tsconfig.json b/tests/types/tsconfig.json new file mode 100644 index 00000000..9d4bc67d --- /dev/null +++ b/tests/types/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "strict": true, + "noEmit": true, + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": ".", + "paths": { + "dotenv": ["../../lib/main.d.ts"] + } + }, + "include": ["./test.ts", "../../main.d.ts"] +} diff --git a/types/tsconfig.json b/types/tsconfig.json deleted file mode 100644 index a0a67f7f..00000000 --- a/types/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": ["es6"], - "strict": true, - "noEmit": true, - "baseUrl": ".", - "paths": { - "dotenv": ["../lib/main.d.ts"] - } - }, - "include": ["./test.ts", "../main.d.ts"] -} From 16651feb9537bb1949596edc7efb52f55cd2c148 Mon Sep 17 00:00:00 2001 From: Scott Motte Date: Fri, 14 Jan 2022 14:46:39 -0800 Subject: [PATCH 4/4] Clean up --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 31acbcc8..9c9f1dc4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file. See [standa ## [Unreleased](https://github.com/motdotla/dotenv/compare/v11.0.0...master) +- Cleanup ([#587](https://github.com/motdotla/dotenv/pull/587)) - Move types/index.d.ts to lib/main.d.ts ([#585](https://github.com/motdotla/dotenv/pull/585)) - Remove flow ([#584](https://github.com/motdotla/dotenv/pull/584))