Skip to content

Commit

Permalink
Remove unwanted dependency improve docs (#236)
Browse files Browse the repository at this point in the history
Remove unwanted dependency improve docs
  • Loading branch information
bashleigh authored Dec 21, 2019
2 parents 228f0ac + 0626a82 commit 5453a55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,13 +402,7 @@ export default {
## Custom env file path

To use dotenv options, you will need to install `@types/dotenv` by running

```bash
$ yarn add --dev @types/dotenv
```

Now you can specify dotenv options with the second parameter of the load method
You can specify dotenv options with the second parameter of the load method

```ts
ConfigModule.load(path.resolve(__dirname, '*/**!(*.d).config.{ts,js}'), {
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
"prepublish": "npm run format && npm run build"
},
"peerDependencies": {
"@nestjs/common": "^5.1.0 || ^6.0.3",
"@types/dotenv": "^8.2.0"
"@nestjs/common": "^5.1.0 || ^6.0.3"
},
"dependencies": {
"dotenv": "^8.0.0",
Expand All @@ -53,7 +52,6 @@
"@nestjs/common": "^6.2.4",
"@nestjs/core": "^6.2.4",
"@nestjs/testing": "^6.2.4",
"@types/dotenv": "^8.2.0",
"@types/glob": "^7.1.1",
"@types/jest": "^24.0.11",
"coveralls": "^3.0.3",
Expand Down

0 comments on commit 5453a55

Please sign in to comment.