From 7fc39268fc60644c714353fb589d4601313bef76 Mon Sep 17 00:00:00 2001 From: Rico Kahler Date: Mon, 29 Apr 2024 12:22:13 -0500 Subject: [PATCH] refactor(cli): prefix with `unstable_` --- packages/@sanity/cli/src/types.ts | 2 +- packages/sanity/src/_internal/cli/actions/build/buildAction.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@sanity/cli/src/types.ts b/packages/@sanity/cli/src/types.ts index 294f849a6651..437835fc3ee6 100644 --- a/packages/@sanity/cli/src/types.ts +++ b/packages/@sanity/cli/src/types.ts @@ -311,7 +311,7 @@ export interface CliConfig { vite?: UserViteConfig - enableAutoUpdates?: boolean + unstable_enableAutoUpdates?: boolean } export type UserViteConfig = diff --git a/packages/sanity/src/_internal/cli/actions/build/buildAction.ts b/packages/sanity/src/_internal/cli/actions/build/buildAction.ts index b86db1ecba49..afb059763eaa 100644 --- a/packages/sanity/src/_internal/cli/actions/build/buildAction.ts +++ b/packages/sanity/src/_internal/cli/actions/build/buildAction.ts @@ -79,7 +79,7 @@ export default async function buildSanityStudio( const enableAutoUpdates = flags['enable-auto-updates'] || - (cliConfig && 'enableAutoUpdates' in cliConfig && cliConfig.enableAutoUpdates) + (cliConfig && 'unstable_enableAutoUpdates' in cliConfig && cliConfig.unstable_enableAutoUpdates) if (enableAutoUpdates) { output.print(`${info} Building with auto-updates enabled`)