File tree 4 files changed +24
-9
lines changed
4 files changed +24
-9
lines changed Original file line number Diff line number Diff line change 1
1
# Typescript Project Template
2
2
3
+ ## [ v1.2.1]
4
+
5
+ ### Fixes
6
+ - [ TSTEMPLATE-3] [ Docs ] Typedoc --excludeNotExported switch is deprecated
7
+ - [ TSTEMPLATE-4] Seperate index.ts from main.ts
8
+ - [ TSTEMPLATE-5] Source mapping should be loaded before imports
9
+ - [ TSTEMPLATE-6] main() entrypoint should have catch block
10
+
3
11
## [ v1.2.0]
4
12
5
13
### Additions
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " MY_APP" ,
3
3
"version" : " 1.0.0" ,
4
- "ts-project-version" : " 1.2.0 " ,
4
+ "ts-project-version" : " 1.2.1 " ,
5
5
"main" : " dist/index.js" ,
6
6
"types" : " dist/index.d.ts" ,
7
7
"scripts" : {
18
18
"webpack:prod" : " ./node_modules/.bin/webpack --mode=production" ,
19
19
"preprocess" : " " ,
20
20
"postprocess" : " " ,
21
- "doc" : " typedoc --out docs src --excludeNotExported " ,
21
+ "doc" : " typedoc --out docs src" ,
22
22
"lint" : " eslint . --ext .ts --fix" ,
23
23
"lint:prod" : " eslint . --ext .ts --fix --config=.eslintrc.prod.json" ,
24
24
"coverage" : " nyc npm run coverage-test" ,
Original file line number Diff line number Diff line change 1
- import { logger } from './logger' ;
2
- import { env } from './environment' ;
3
-
1
+ // Bootstrap source mapping
4
2
import * as sourceMapper from 'source-map-support' ;
5
3
6
4
sourceMapper . install ( {
7
5
environment : 'node'
8
6
} ) ;
9
7
10
- async function main ( ) {
11
- logger . info ( 'Hello ' + env . APP_TITLE ) ;
12
- }
13
- main ( ) ;
8
+ // Enter application
9
+ import './main' ;
Original file line number Diff line number Diff line change
1
+ import { logger } from './logger' ;
2
+ import { env } from './environment' ;
3
+
4
+ async function main ( ) {
5
+ logger . info ( 'Hello ' + env . APP_TITLE ) ;
6
+ }
7
+ main ( )
8
+ . catch ( error => {
9
+ logger . error ( error ) ;
10
+ process . exit ( ) ;
11
+ } ) ;
You can’t perform that action at this time.
0 commit comments