Skip to content

Commit

Permalink
Merge pull request #585 from xiaoxiangmoe/main
Browse files Browse the repository at this point in the history
feat: move types/index.d.ts to lib/main.d.ts
  • Loading branch information
motdotla committed Jan 14, 2022
2 parents 1ad4312 + f7069f6 commit 0c7fa9b
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 47 deletions.
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;
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.

0 comments on commit 0c7fa9b

Please sign in to comment.