From bb96583e34235a2c333f129a9a83796f7b0b62f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Uhl=C3=AD=C5=99?= Date: Tue, 12 May 2020 11:23:31 +0200 Subject: [PATCH] fix(cli): bundled configs should be loaded by default --- bin/run | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/run b/bin/run index f8de433a..cc4d1f5c 100755 --- a/bin/run +++ b/bin/run @@ -1,6 +1,11 @@ #!/usr/bin/env node /* eslint-disable @typescript-eslint/no-var-requires */ +if (!process.env.NODE_CONFIG_DIR) { + const path = require('path') + process.env.NODE_CONFIG_DIR = path.join(__dirname, '../config/') +} + require('@oclif/command').run() .then(require('@oclif/command/flush')) .catch(require('@oclif/errors/handle'))