From 1321ea47485eebfa72a1b2432bfb28ed8cbcad62 Mon Sep 17 00:00:00 2001 From: Morten Olsen Date: Tue, 9 Dec 2025 13:08:31 +0100 Subject: [PATCH] fix: corrected profile reading and default file order --- src/start.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/start.ts b/src/start.ts index 33d184a..b44dbbf 100644 --- a/src/start.ts +++ b/src/start.ts @@ -19,7 +19,7 @@ const argv = await yargs(hideBin(process.argv)) alias: 'f', type: 'string', description: 'The file to use for environment variables. (multiple files can be specified)', - default: ['.env', '.env.with-ssm'], + default: ['.env.with-ssm', '.env'], }) .demandCommand(1, 'Error: You must provide a command to execute after --') .alias('h', 'help') @@ -36,7 +36,10 @@ if (!command) { const files = argv.file && Array.isArray(argv.file) ? argv.file : [argv.file]; const hostEnv = await getEnv(files); -const env = await replaceParams(hostEnv); +const env = await replaceParams(hostEnv, { + region: argv.region, + profile: argv.profile, +}); exec({ command,