File tree 2 files changed +7
-10
lines changed
2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 3
3
## [ v1.2.4]
4
4
5
5
### Fixes
6
+ - [ TSTEMPLATE-17] Environment file should merge declaration and definitions
6
7
- [ TSTEMPLATE-16] Build should clear dist
7
8
- [ TSTEMPLATE-15] Set no-empty eslint rule to warn instead of error
8
9
- [ TSTEMPLATE-14] Remove tsconfig.spec.json
Original file line number Diff line number Diff line change @@ -4,16 +4,12 @@ const envfile = dotenv.config();
4
4
/**
5
5
* Environment Variables Schema
6
6
*/
7
- export interface Environment {
8
- APP_TITLE : string
7
+ export class Environment {
8
+ APP_TITLE = 'MY_APP' ;
9
9
}
10
10
11
- /**
12
- * Default Values
13
- */
14
- const defaults : Environment = {
15
- APP_TITLE : 'MY_APP'
16
- } ;
17
-
18
11
// Export
19
- export const env : Environment = Object . assign ( defaults , envfile . parsed ) ;
12
+ export const env : Environment = Object . assign (
13
+ new Environment ( ) ,
14
+ envfile . parsed
15
+ ) ;
You can’t perform that action at this time.
0 commit comments