Simplify config imports in cli package (#1840)

*  Set path alias for config

*  Update config export

*  Simplify config imports

*  Update also additional imports

*  Update path in collation migration

*  Resolve aliased paths

* 👕 Fix Codacy issue

* 👕 Retry to fix Codacy issue

Co-authored-by: Jan <janober@users.noreply.github.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
Iván Ovejero
2021-06-22 23:18:52 +02:00
committed by GitHub
parent 07a3dbb372
commit c21c8b3369
43 changed files with 107 additions and 97 deletions

View File

@@ -5,7 +5,7 @@ import * as core from 'n8n-core';
dotenv.config();
const config = convict({
export const config = convict({
database: {
type: {
@@ -633,4 +633,3 @@ config.validate({
allowed: 'strict',
});
export = config;