File tree 3 files changed +11
-2
lines changed
server/config/environment
3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -483,6 +483,10 @@ export class Generator extends Base {
483
483
. find ( jscodeshift . TypeAnnotation )
484
484
. remove ( )
485
485
. toSource ( ) ;
486
+ contents = jscodeshift ( contents )
487
+ . find ( jscodeshift . GenericTypeAnnotation )
488
+ . remove ( )
489
+ . toSource ( ) ;
486
490
487
491
// remove any `type Foo = { .. }` declarations
488
492
contents = jscodeshift ( contents )
Original file line number Diff line number Diff line change 1
- export default from '../../server/config/environment/shared' ;
1
+ < % _ if ( filters . babel ) { - % >
2
+ export default from '../../server/config/environment/shared' ; < % } % >
3
+ < % _ if ( filters . ts ) { - % >
4
+ import shared from '../../server/config/environment/shared' ;
5
+
6
+ module . exports . default = shared ; < % } % >
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- exports = module . exports = {
3
+ module . exports . default = {
4
4
env : process . env . NODE_ENV ,
5
5
port : process . env . PORT || < %= devPort % > ,
6
6
// List of user roles
You can’t perform that action at this time.
0 commit comments