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

@@ -1,6 +1,7 @@
#!/usr/bin/env node
var alias = require('module-alias');
var path = require('path'); // tslint:disable-line:no-var-keyword
alias(path.resolve(__dirname, "../"));
// Make sure that it also find the config folder when it
// did get started from another folder that the root one.