Skip to content

Commit 01ef5b2

Browse files
committed
prevent duplicate warnings
1 parent 4e60d1f commit 01ef5b2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/cli-v3/src/commands/whoami.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export async function whoAmI(
8787
loadConfig({
8888
overrides: { project: options?.projectRef ?? envVars.TRIGGER_PROJECT_REF },
8989
configFile: options?.config,
90+
warn: false,
9091
})
9192
);
9293

packages/cli-v3/src/config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@ export type ResolveConfigOptions = {
2727
cwd?: string;
2828
overrides?: Partial<TriggerConfig>;
2929
configFile?: string;
30+
warn?: boolean;
3031
};
3132

3233
export async function loadConfig({
3334
cwd = process.cwd(),
3435
overrides,
3536
configFile,
37+
warn = true,
3638
}: ResolveConfigOptions = {}): Promise<ResolvedConfig> {
3739
const result = await c12.loadConfig<TriggerConfig>({
3840
name: "trigger",
@@ -41,7 +43,7 @@ export async function loadConfig({
4143
jitiOptions: { debug: logger.loggerLevel === "debug" },
4244
});
4345

44-
return await resolveConfig(cwd, result, overrides);
46+
return await resolveConfig(cwd, result, overrides, warn);
4547
}
4648

4749
type ResolveWatchConfigOptions = ResolveConfigOptions & {

0 commit comments

Comments
 (0)