feat: handle config name

related to https://github.com/NativeScript/nativescript-cli/pull/5554
This commit is contained in:
rigor789
2021-08-09 15:56:32 +02:00
parent 90deb5b1ee
commit 3bf55b7a04

View File

@ -56,7 +56,12 @@ program
env['env'] = options.env;
}
env['watch'] = options.watch;
env['watch'] ??= options.watch;
// if --env.config is passed, we'll set an environment
// variable to it's value so that the config Util
// reads from the correct config file.
process.env.NATIVESCRIPT_CONFIG_NAME ??= env['config'];
const configPath = (() => {
if (options.config) {