Skip to content

Commit 4e3b9d9

Browse files
committed
feat: silent the debug output from dotenv
1 parent 299e2bc commit 4e3b9d9

6 files changed

Lines changed: 31 additions & 5 deletions

File tree

examples/basic-app/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# @h3ravel/example
22

3+
## 0.4.2
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
- @h3ravel/config@0.5.2
9+
10+
## 0.4.1
11+
12+
### Patch Changes
13+
14+
- Updated dependencies
15+
- @h3ravel/config@0.5.1
16+
317
## 0.4.0
418

519
### Minor Changes

examples/basic-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@h3ravel/example",
3-
"version": "0.4.0",
3+
"version": "0.4.2",
44
"description": "Example H3ravel App.",
55
"type": "module",
66
"main": "dist/index.js",

packages/config/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# @h3ravel/config
22

3+
## 0.5.2
4+
5+
### Patch Changes
6+
7+
- dynamically import dotenv
8+
9+
## 0.5.1
10+
11+
### Patch Changes
12+
13+
- feat: hide all dotenv debug info
14+
315
## 0.5.0
416

517
### Minor Changes

packages/config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@h3ravel/config",
3-
"version": "0.5.0",
3+
"version": "0.5.2",
44
"description": "Environment/config loading and management system for H3ravel.",
55
"type": "module",
66
"main": "dist/index.js",

packages/config/src/Providers/ConfigServiceProvider.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { Bindings, ServiceProvider } from '@h3ravel/core'
22
import { ConfigRepository, EnvLoader } from '..'
33

4-
import { config as loadEnv } from 'dotenv'
5-
64
/**
75
* Loads configuration and environment files.
86
*
@@ -14,7 +12,7 @@ import { config as loadEnv } from 'dotenv'
1412
export class ConfigServiceProvider extends ServiceProvider {
1513
async register () {
1614

17-
loadEnv()
15+
(await import('dotenv')).config({ quiet: true })
1816

1917
/**
2018
* Create singleton to load env

tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
"./public",
2525
"./**/storage",
2626
"./storage",
27+
"./storage",
28+
"**coverage**",
2729
"eslint.config.js",
2830
"jest.config.ts"
2931
]

0 commit comments

Comments
 (0)