File tree Expand file tree Collapse file tree 7 files changed +11
-16
lines changed Expand file tree Collapse file tree 7 files changed +11
-16
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- export { default as constants } from './constants' ;
2
- export * from './constants' ;
1
+ export const LANGUAGES = [ 'en' , 'fr' ] as const ;
2
+ export const DEFAULT_LANGUAGE = LANGUAGES [ 0 ] ;
3
+ export type Language = typeof LANGUAGES [ number ] ;
3
4
4
- export * from './types' ;
5
+ export type PrismaInclude = {
6
+ [ key : string ] : boolean | PrismaInclude ;
7
+ } ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 7
7
"node" : " 16.13.1"
8
8
},
9
9
"scripts" : {
10
- "clean" : " rimraf \" node_modules \" \" client/build \" \" core /lib\" \" server/node_modules \" \" server/lib \" \" **/tsconfig.tsbuildinfo\" " ,
10
+ "clean" : " rimraf \" client/build \" \" core/lib \" \" prisma /lib\" \" server/lib \" \" **/node_modules \" \" **/tsconfig.tsbuildinfo\" " ,
11
11
"compile" : " tsc -b tsconfig.build.json" ,
12
12
"front" : " npm run start --workspace=client" ,
13
13
"back" : " npm run start:watch --workspace=server" ,
16
16
"db:sync:dev" : " npm run db:sync:dev --workspace=server" ,
17
17
"db:sync:prod" : " npm run db:sync:prod --workspace=server" ,
18
18
"db:seed" : " npm run db:seed --workspace=server" ,
19
- "postinstall" : " bash ./postInstall.sh && npm run compile "
19
+ "postinstall" : " bash ./postInstall.sh"
20
20
},
21
21
"devDependencies" : {
22
22
"concurrently" : " ^7.6.0" ,
Original file line number Diff line number Diff line change 1
1
if [ " $NODE_ENV " = " production" ]; then
2
2
npm run db:sync:prod
3
+ npm run compile
3
4
npm run db:seed
4
5
npm run build --workspace=client
5
6
else
6
7
npm run db:sync:dev
8
+ npm run compile
7
9
npm run db:seed
8
10
fi
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ const authenticate = (prisma: PrismaClient) => async (
80
80
81
81
// Return user
82
82
res . json ( user ) ;
83
+ return ;
83
84
}
84
85
85
86
throw new Error ( 'Invalid password' ) ;
Original file line number Diff line number Diff line change 3
3
"references" : [
4
4
{ "path" : " prisma" },
5
5
{ "path" : " core" },
6
- { "path" : " client" },
7
6
{ "path" : " server" }
8
7
]
9
8
}
You can’t perform that action at this time.
0 commit comments