Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: move types/index.d.ts to lib/main.d.ts #585

Merged
merged 2 commits into from Jan 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .npmignore
Expand Up @@ -2,6 +2,7 @@
examples/
flow-typed/
tests/
types/
.editorconfig
.flowconfig
.npmignore
Expand Down
2 changes: 0 additions & 2 deletions appveyor.yml
Expand Up @@ -11,8 +11,6 @@ environment:
install:
# Get the latest stable version of Node 0.STABLE.latest
- ps: Install-Product node $env:nodejs_version
# Typical npm stuff.
- npm i -g npm@latest
- npm install

# Post-install test scripts.
Expand Down
2 changes: 0 additions & 2 deletions types/index.d.ts → lib/main.d.ts
Expand Up @@ -55,5 +55,3 @@ export interface DotenvConfigOutput {
*
*/
export function config(options?: DotenvConfigOptions): DotenvConfigOutput;
/** @deprecated since v7.0.0 Use config instead. */
export const load: typeof config;
xiaoxiangmoe marked this conversation as resolved.
Show resolved Hide resolved
54 changes: 28 additions & 26 deletions package-lock.json

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

9 changes: 5 additions & 4 deletions package.json
Expand Up @@ -3,18 +3,18 @@
"version": "11.0.0",
"description": "Loads environment variables from .env file",
"main": "lib/main.js",
"types": "lib/main.d.ts",
"exports": {
".": "./lib/main.js",
"./config": "./config.js",
"./config.js": "./config.js",
"./package.json": "./package.json"
},
"types": "types/index.d.ts",
"scripts": {
"dtslint": "dtslint types",
"dts-check": "tsc --project types/tsconfig.json",
"lint": "standard",
"postlint": "standard-markdown",
"pretest": "npm run lint && npm run dtslint",
"pretest": "npm run lint && npm run dts-check",
"test": "tap tests/*.js --100",
"prerelease": "npm test",
"release": "standard-version"
Expand All @@ -41,7 +41,8 @@
"standard": "^13.1.0",
"standard-markdown": "^5.1.0",
"standard-version": "^7.0.0",
"tap": "^14.7.0"
"tap": "^14.7.0",
"typescript": "^4.5.4"
},
"dependencies": {},
"engines": {
Expand Down
11 changes: 4 additions & 7 deletions types/tsconfig.json
Expand Up @@ -2,14 +2,11 @@
"compilerOptions": {
"module": "commonjs",
"lib": ["es6"],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"strict": true,
"noEmit": true,
"baseUrl": ".",
"paths": {
"dotenv": ["."]
"dotenv": ["../lib/main.d.ts"]
}
}
},
"include": ["./test.ts", "../main.d.ts"]
}
6 changes: 0 additions & 6 deletions types/tslint.json

This file was deleted.