This commit is contained in:
Moriz Wahl 2022-03-08 18:19:01 +01:00
parent 18318404eb
commit a385f1772c
2 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,7 @@ module.exports = {
'@arg/(.*)': '<rootDir>/src/graphql/arg/$1',
'@enum/(.*)': '<rootDir>/src/graphql/enum/$1',
'@repository/(.*)': '<rootDir>/src/typeorm/repository/$1',
'@test/(.*)': '<rootDir>/test/$1',
'@entity/(.*)':
process.env.NODE_ENV === 'development'
? '<rootDir>/../database/entity/$1'

View File

@ -53,7 +53,8 @@
"@entity/*": ["../database/entity/*"],
"@enum/*": ["./src/graphql/enum/*"],
"@model/*": ["./src/graphql/model/*"],
"@repository/*": ["./src/typeorm/repository/*"]
"@repository/*": ["./src/typeorm/repository/*"],
"@test/*": ["./test/*"]
},
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
// "typeRoots": [], /* List of folders to include type definitions from. */