fix n warnings

This commit is contained in:
Ulf Gebhardt 2023-06-09 14:03:43 +02:00
parent c8d01263ef
commit 231784ed09
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
3 changed files with 4 additions and 2 deletions

View File

@ -16,10 +16,12 @@ module.exports = {
'@/(.*)': '<rootDir>/src/$1',
'@test/(.*)': '<rootDir>/test/$1',
'@entity/(.*)':
// eslint-disable-next-line n/no-process-env
process.env.NODE_ENV === 'development'
? '<rootDir>/../database/entity/$1'
: '<rootDir>/../database/build/entity/$1',
'@dbTools/(.*)':
// eslint-disable-next-line n/no-process-env
process.env.NODE_ENV === 'development'
? '<rootDir>/../database/src/$1'
: '<rootDir>/../database/build/src/$1',

View File

@ -1,4 +1,4 @@
// ATTENTION: DO NOT PUT ANY SECRETS IN HERE (or the .env)
/* eslint-disable n/no-process-env */
import dotenv from 'dotenv'
dotenv.config()

View File

@ -33,5 +33,5 @@ async function main() {
main().catch((e) => {
// eslint-disable-next-line no-console
console.error(e)
process.exit(1)
throw e
})