diff --git a/src/commands/prepare.ts b/src/commands/prepare.ts index 368df4cc..10f514aa 100644 --- a/src/commands/prepare.ts +++ b/src/commands/prepare.ts @@ -203,7 +203,7 @@ export async function writeProviderJson( { logger, userError }: { logger: ILogger; userError: UserError } ): Promise { // TODO: force flag - if ((await exists(buildProviderPath(providerJson.name))) && !options?.force) { + if ((await exists(buildProviderPath(providerJson.name))) && options?.force !== true) { throw userError(`Provider ${providerJson.name} already exists.`, 1); }