mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
feat: handle config name
related to https://github.com/NativeScript/nativescript-cli/pull/5554
This commit is contained in:
@ -56,7 +56,12 @@ program
|
|||||||
env['env'] = options.env;
|
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 = (() => {
|
const configPath = (() => {
|
||||||
if (options.config) {
|
if (options.config) {
|
||||||
|
Reference in New Issue
Block a user