File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,11 @@ const restrictedImports = [
103
103
path : 'gql.tada' ,
104
104
replacement : { path : '~/graphql' } ,
105
105
} ,
106
+ {
107
+ path : '@seedcompany/nest/hooks' ,
108
+ replacement : { path : '~/core/hooks' } ,
109
+ message : 'Reference from core instead to keep loose coupling' ,
110
+ } ,
106
111
] ;
107
112
108
113
const namingConvention = [
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import { Global, Module } from '@nestjs/common';
2
2
import { APP_FILTER , APP_INTERCEPTOR } from '@nestjs/core' ;
3
3
import { DataLoaderModule } from '@seedcompany/data-loader' ;
4
4
import { DiscoveryModule } from '@seedcompany/nest/discovery' ;
5
+ // eslint-disable-next-line @seedcompany/no-restricted-imports
6
+ import { HooksModule } from '@seedcompany/nest/hooks' ;
5
7
import { EmailModule } from '@seedcompany/nestjs-email' ;
6
8
import { AuthenticationModule } from './authentication/authentication.module' ;
7
9
import { AwsS3Factory } from './aws-s3.factory' ;
@@ -38,6 +40,7 @@ import { WaitResolver } from './wait.resolver';
38
40
GelModule ,
39
41
EmailModule . forRootAsync ( { useExisting : ConfigService } ) ,
40
42
DiscoveryModule ,
43
+ HooksModule ,
41
44
GraphqlModule ,
42
45
EventsModule ,
43
46
TracingModule ,
@@ -65,6 +68,7 @@ import { WaitResolver } from './wait.resolver';
65
68
DatabaseModule ,
66
69
DataLoaderModule ,
67
70
DiscoveryModule ,
71
+ HooksModule ,
68
72
GelModule ,
69
73
EmailModule ,
70
74
EventsModule ,
Original file line number Diff line number Diff line change
1
+ // eslint-disable-next-line @seedcompany/no-restricted-imports
2
+ export { Hooks , OnHook } from '@seedcompany/nest/hooks' ;
You can’t perform that action at this time.
0 commit comments