@sanity/cli-core 3.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SanityCommand.d.ts +1 -1
- package/dist/_exports/config.d.ts +3 -3
- package/dist/_exports/index.d.ts +4 -4
- package/dist/_exports/schemas.d.ts +1 -1
- package/dist/_exports/types.d.ts +4 -4
- package/dist/_exports/types.js.map +1 -1
- package/dist/{cliConfig-CbW8neMv.d.ts → cliConfig-DrUV6Wp6.d.ts} +30 -4
- package/dist/config/cli/schemas.js.map +1 -1
- package/dist/config/cli/types/cliConfig.js.map +1 -1
- package/dist/errors/NonInteractiveError.js +2 -1
- package/dist/errors/NonInteractiveError.js.map +1 -1
- package/dist/errors/ProjectRootNotFoundError.js +2 -1
- package/dist/errors/ProjectRootNotFoundError.js.map +1 -1
- package/dist/{findStudioConfigPath-DcKlHhyW.d.ts → findStudioConfigPath-DeBa0pMT.d.ts} +2 -2
- package/dist/{schemas-DRCVXpyW.d.ts → schemas-Y-KwP413.d.ts} +3 -43
- package/dist/{workbenchApp-Dhtbsuhn.d.ts → workbenchApp-CSYpReA-.d.ts} +2 -2
- package/package.json +9 -4
package/dist/SanityCommand.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as ProjectCliClientOptions, t as GlobalCliClientOptions } from "./apiClient-DXlF5ZV3.js";
|
|
2
|
-
import { r as CliConfig } from "./cliConfig-
|
|
2
|
+
import { r as CliConfig } from "./cliConfig-DrUV6Wp6.js";
|
|
3
3
|
import { t as ProjectRootResult } from "./recursivelyResolveProjectRoot-BE54uEP6.js";
|
|
4
4
|
import { t as CLITelemetryStore } from "./types-ZNH3prAd.js";
|
|
5
5
|
import { t as Output } from "./types-CwJLTYDj.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as getStudioWorkspaces, c as findProjectRoot, d as getCliConfigUncached, f as getCliToken, g as clearCliTokenCache, h as setCliUserConfig, i as isStudioConfig, l as getCliConfigSync, m as getUserConfig, n as tryFindStudioConfigPath, o as getStudioConfig, p as getCliUserConfig, r as findPathForFiles, s as findProjectRootSync, t as findStudioConfigPath, u as getCliConfig } from "../findStudioConfigPath-
|
|
3
|
-
import { n as isWorkbenchApp, r as parseWorkbenchCliConfig } from "../workbenchApp-
|
|
1
|
+
import { i as ConfigStore, o as TypeGenConfig, r as CliConfig } from "../cliConfig-DrUV6Wp6.js";
|
|
2
|
+
import { a as getStudioWorkspaces, c as findProjectRoot, d as getCliConfigUncached, f as getCliToken, g as clearCliTokenCache, h as setCliUserConfig, i as isStudioConfig, l as getCliConfigSync, m as getUserConfig, n as tryFindStudioConfigPath, o as getStudioConfig, p as getCliUserConfig, r as findPathForFiles, s as findProjectRootSync, t as findStudioConfigPath, u as getCliConfig } from "../findStudioConfigPath-DeBa0pMT.js";
|
|
3
|
+
import { n as isWorkbenchApp, r as parseWorkbenchCliConfig } from "../workbenchApp-CSYpReA-.js";
|
|
4
4
|
import { a as getSanityDataDir, i as getSanityConfigDir, n as getSanityUrl, r as getSanityEnvVar, t as getWorkspace } from "../getWorkspace-CU32E6Uo.js";
|
|
5
5
|
export { type CliConfig, type ConfigStore, type TypeGenConfig, clearCliTokenCache, findPathForFiles, findProjectRoot, findProjectRootSync, findStudioConfigPath, getCliConfig, getCliConfigSync, getCliConfigUncached, getCliToken, getCliUserConfig, getSanityConfigDir, getSanityDataDir, getSanityEnvVar, getSanityUrl, getStudioConfig, getStudioWorkspaces, getUserConfig, getWorkspace, isStudioConfig, isWorkbenchApp, parseWorkbenchCliConfig, setCliUserConfig, tryFindStudioConfigPath };
|
package/dist/_exports/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { i as getProjectCliClient, n as ProjectCliClientOptions, r as getGlobalCliClient, t as GlobalCliClientOptions } from "../apiClient-DXlF5ZV3.js";
|
|
2
|
-
import { i as ConfigStore, n as AppVisibility,
|
|
2
|
+
import { i as ConfigStore, n as AppVisibility, r as CliConfig, s as UserViteConfig, t as APP_VISIBILITIES } from "../cliConfig-DrUV6Wp6.js";
|
|
3
3
|
import { t as ProjectRootResult } from "../recursivelyResolveProjectRoot-BE54uEP6.js";
|
|
4
4
|
import { n as ConsentInformation, r as TelemetryUserProperties, t as CLITelemetryStore } from "../types-ZNH3prAd.js";
|
|
5
5
|
import { n as RequireProps, r as SanityOrgUser, t as Output } from "../types-CwJLTYDj.js";
|
|
6
6
|
import { SanityCommand, SanityCommandInterface } from "../SanityCommand.js";
|
|
7
7
|
import { t as mockBrowserEnvironment } from "../mockBrowserEnvironment-BjFQPb2W.js";
|
|
8
|
-
import { a as getStudioWorkspaces, c as findProjectRoot, d as getCliConfigUncached, f as getCliToken, g as clearCliTokenCache, h as setCliUserConfig, i as isStudioConfig, l as getCliConfigSync, m as getUserConfig, n as tryFindStudioConfigPath, o as getStudioConfig, p as getCliUserConfig, r as findPathForFiles, s as findProjectRootSync, t as findStudioConfigPath, u as getCliConfig } from "../findStudioConfigPath-
|
|
9
|
-
import { n as isWorkbenchApp, t as ApplicationType } from "../workbenchApp-
|
|
8
|
+
import { a as getStudioWorkspaces, c as findProjectRoot, d as getCliConfigUncached, f as getCliToken, g as clearCliTokenCache, h as setCliUserConfig, i as isStudioConfig, l as getCliConfigSync, m as getUserConfig, n as tryFindStudioConfigPath, o as getStudioConfig, p as getCliUserConfig, r as findPathForFiles, s as findProjectRootSync, t as findStudioConfigPath, u as getCliConfig } from "../findStudioConfigPath-DeBa0pMT.js";
|
|
9
|
+
import { n as isWorkbenchApp, t as ApplicationType } from "../workbenchApp-CSYpReA-.js";
|
|
10
10
|
import { a as getSanityDataDir, i as getSanityConfigDir, n as getSanityUrl, r as getSanityEnvVar, t as getWorkspace } from "../getWorkspace-CU32E6Uo.js";
|
|
11
11
|
import { debug, subdebug } from "./debug.js";
|
|
12
12
|
import { t as NonInteractiveError } from "../NonInteractiveError-CSLT5y93.js";
|
|
@@ -18,7 +18,7 @@ import { a as isCi, i as isInteractive, n as normalizePath, o as importModule, r
|
|
|
18
18
|
import { a as getLocalPackageVersion, i as getLocalPackageDir, n as resolveLocalPackageFrom, r as resolveLocalPackagePath, t as resolveLocalPackage } from "../resolveLocalPackage-Dr-TNTyk.js";
|
|
19
19
|
import { n as ReadPackageJsonOptions, r as readPackageJson, t as PackageJson } from "../readPackageJson-Cr_lbjVR.js";
|
|
20
20
|
import { n as colorizeJson, t as getTimer } from "../timer-Dwu2TIgB.js";
|
|
21
|
-
import { i as studioManifestSchema, n as StudioManifest, r as coreAppManifestSchema, t as CoreAppManifest } from "../schemas-
|
|
21
|
+
import { i as studioManifestSchema, n as StudioManifest, r as coreAppManifestSchema, t as CoreAppManifest } from "../schemas-Y-KwP413.js";
|
|
22
22
|
import { WorkerOptions } from "node:worker_threads";
|
|
23
23
|
interface PromisifyWorkerOptions extends WorkerOptions {
|
|
24
24
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as cliConfigSchema, i as studioManifestSchema, n as StudioManifest, r as coreAppManifestSchema, t as CoreAppManifest } from "../schemas-
|
|
1
|
+
import { a as cliConfigSchema, i as studioManifestSchema, n as StudioManifest, r as coreAppManifestSchema, t as CoreAppManifest } from "../schemas-Y-KwP413.js";
|
|
2
2
|
export { type CoreAppManifest, type StudioManifest, cliConfigSchema, coreAppManifestSchema, studioManifestSchema };
|
package/dist/_exports/types.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as ReactCompilerConfig, i as ConfigStore, o as TypeGenConfig, r as CliConfig, s as UserViteConfig } from "../cliConfig-DrUV6Wp6.js";
|
|
2
2
|
import { t as ProjectRootResult } from "../recursivelyResolveProjectRoot-BE54uEP6.js";
|
|
3
3
|
import { n as ConsentInformation, r as TelemetryUserProperties, t as CLITelemetryStore } from "../types-ZNH3prAd.js";
|
|
4
4
|
import { n as RequireProps, r as SanityOrgUser, t as Output } from "../types-CwJLTYDj.js";
|
|
5
5
|
import { SanityCommandInterface } from "../SanityCommand.js";
|
|
6
|
-
import { t as ApplicationType } from "../workbenchApp-
|
|
6
|
+
import { t as ApplicationType } from "../workbenchApp-CSYpReA-.js";
|
|
7
7
|
import { n as ReadPackageJsonOptions, t as PackageJson } from "../readPackageJson-Cr_lbjVR.js";
|
|
8
|
-
import { n as StudioManifest, t as CoreAppManifest } from "../schemas-
|
|
9
|
-
export type { ApplicationType, CLITelemetryStore, CliConfig, ConfigStore, ConsentInformation, CoreAppManifest, Output, PackageJson, ProjectRootResult, ReadPackageJsonOptions, RequireProps, SanityCommandInterface, SanityOrgUser, StudioManifest, TelemetryUserProperties, TypeGenConfig, UserViteConfig };
|
|
8
|
+
import { n as StudioManifest, t as CoreAppManifest } from "../schemas-Y-KwP413.js";
|
|
9
|
+
export type { ApplicationType, CLITelemetryStore, CliConfig, ConfigStore, ConsentInformation, CoreAppManifest, Output, PackageJson, ProjectRootResult, ReactCompilerConfig, ReadPackageJsonOptions, RequireProps, SanityCommandInterface, SanityOrgUser, StudioManifest, TelemetryUserProperties, TypeGenConfig, UserViteConfig };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/_exports/types.ts"],"sourcesContent":["export {\n type CliConfig,\n type ConfigStore,\n type TypeGenConfig,\n} from '../config/cli/types/cliConfig.js'\nexport {type UserViteConfig} from '../config/cli/types/userViteConfig.js'\nexport {type ApplicationType} from '../config/cli/workbenchApp.js'\nexport {type ProjectRootResult} from '../config/util/recursivelyResolveProjectRoot.js'\nexport {type SanityCommandInterface} from '../SanityCommand.js'\nexport {\n type CLITelemetryStore,\n type ConsentInformation,\n type TelemetryUserProperties,\n} from '../telemetry/types.js'\nexport {type Output, type RequireProps, type SanityOrgUser} from '../types.js'\nexport {type PackageJson, type ReadPackageJsonOptions} from '../util/readPackageJson.js'\nexport {type CoreAppManifest, type StudioManifest} from './schemas.js'\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/_exports/types.ts"],"sourcesContent":["export {\n type CliConfig,\n type ConfigStore,\n type ReactCompilerConfig,\n type TypeGenConfig,\n} from '../config/cli/types/cliConfig.js'\nexport {type UserViteConfig} from '../config/cli/types/userViteConfig.js'\nexport {type ApplicationType} from '../config/cli/workbenchApp.js'\nexport {type ProjectRootResult} from '../config/util/recursivelyResolveProjectRoot.js'\nexport {type SanityCommandInterface} from '../SanityCommand.js'\nexport {\n type CLITelemetryStore,\n type ConsentInformation,\n type TelemetryUserProperties,\n} from '../telemetry/types.js'\nexport {type Output, type RequireProps, type SanityOrgUser} from '../types.js'\nexport {type PackageJson, type ReadPackageJsonOptions} from '../util/readPackageJson.js'\nexport {type CoreAppManifest, type StudioManifest} from './schemas.js'\n"],"names":[],"mappings":"AAiBA,WAAsE"}
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
import { PluginOptions } from "babel-plugin-react-compiler";
|
|
2
|
+
import { ReactCompilerOptions } from "oxc-transform-react";
|
|
2
3
|
import { ConfigEnv, InlineConfig } from "vite";
|
|
3
4
|
/**
|
|
4
5
|
* @public
|
|
5
6
|
*/
|
|
6
7
|
type UserViteConfig = ((config: InlineConfig, env: ConfigEnv) => InlineConfig | Promise<InlineConfig>) | InlineConfig;
|
|
8
|
+
/**
|
|
9
|
+
* Configuration for React Compiler.
|
|
10
|
+
*
|
|
11
|
+
* The `transform` field selects which React Compiler transform to run; the
|
|
12
|
+
* remaining options are passed to the selected transform:
|
|
13
|
+
*
|
|
14
|
+
* - `'babel'` (default) - the Babel plugin
|
|
15
|
+
* ({@link https://www.npmjs.com/package/babel-plugin-react-compiler | babel-plugin-react-compiler}
|
|
16
|
+
* must be installed in your project)
|
|
17
|
+
* - `'oxc'` (experimental) - the native Rust port
|
|
18
|
+
* ({@link https://www.npmjs.com/package/oxc-transform-react | oxc-transform-react}
|
|
19
|
+
* must be installed in your project)
|
|
20
|
+
*
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
type ReactCompilerConfig = (PluginOptions & {
|
|
24
|
+
transform?: 'babel';
|
|
25
|
+
}) | (ReactCompilerOptions & {
|
|
26
|
+
transform: 'oxc';
|
|
27
|
+
});
|
|
7
28
|
interface TypeGenConfig {
|
|
8
29
|
formatGeneratedCode: boolean;
|
|
9
30
|
generates: string;
|
|
@@ -86,8 +107,13 @@ interface CliConfig {
|
|
|
86
107
|
project?: {
|
|
87
108
|
basePath?: string;
|
|
88
109
|
};
|
|
89
|
-
/**
|
|
90
|
-
|
|
110
|
+
/**
|
|
111
|
+
* Configuration options for React Compiler. Pass `true` to enable it with
|
|
112
|
+
* the default (babel) transform, or an object to configure it — see
|
|
113
|
+
* {@link ReactCompilerConfig} for choosing between the babel and the
|
|
114
|
+
* experimental oxc transform.
|
|
115
|
+
*/
|
|
116
|
+
reactCompiler?: boolean | ReactCompilerConfig;
|
|
91
117
|
/** Wraps the Studio in \<React.StrictMode\> root to aid in flagging potential problems related to concurrent features (startTransition, useTransition, useDeferredValue, Suspense). Can also be enabled by setting SANITY_STUDIO_REACT_STRICT_MODE="true"|"false". It only applies to sanity dev in development mode and is ignored in sanity build and in production. Defaults to true. */
|
|
92
118
|
reactStrictMode?: boolean;
|
|
93
119
|
/**
|
|
@@ -167,5 +193,5 @@ interface ConfigStore {
|
|
|
167
193
|
/** Write a value by key, merging it into the existing config. */
|
|
168
194
|
set: (key: string, value: unknown) => void;
|
|
169
195
|
}
|
|
170
|
-
export {
|
|
171
|
-
//# sourceMappingURL=cliConfig-
|
|
196
|
+
export { ReactCompilerConfig as a, ConfigStore as i, AppVisibility as n, TypeGenConfig as o, CliConfig as r, UserViteConfig as s, APP_VISIBILITIES as t };
|
|
197
|
+
//# sourceMappingURL=cliConfig-DrUV6Wp6.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/cli/schemas.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"sources":["../../../src/config/cli/schemas.ts"],"sourcesContent":["import {z} from 'zod/mini'\n\nimport {\n APP_VISIBILITIES,\n type CliConfig,\n type ReactCompilerConfig,\n type TypeGenConfig,\n} from './types/cliConfig.js'\nimport {type UserViteConfig} from './types/userViteConfig'\n\n/**\n * @public\n */\nexport const cliConfigSchema = z.object({\n api: z.optional(\n z.object({\n dataset: z.optional(z.string()),\n projectId: z.optional(z.string()),\n }),\n ),\n\n app: z.optional(\n z.object({\n entry: z.optional(z.string()),\n icon: z.optional(z.string()),\n id: z.optional(z.string()),\n organizationId: z.optional(z.string()),\n title: z.optional(z.string()),\n visibility: z.optional(z.enum(APP_VISIBILITIES)),\n }),\n ),\n\n autoUpdates: z.optional(z.boolean()),\n\n deployment: z.optional(\n z.object({\n appId: z.optional(z.string()),\n autoUpdates: z.optional(z.boolean()),\n }),\n ),\n\n graphql: z.optional(\n z.array(\n z.object({\n filterSuffix: z.optional(z.string()),\n generation: z.optional(z.enum(['gen1', 'gen2', 'gen3'])),\n id: z.optional(z.string()),\n nonNullDocumentFields: z.optional(z.boolean()),\n playground: z.optional(z.boolean()),\n source: z.optional(z.string()),\n tag: z.optional(z.string()),\n workspace: z.optional(z.string()),\n }),\n ),\n ),\n\n mediaLibrary: z.optional(\n z.object({\n aspectsPath: z.optional(z.string()),\n }),\n ),\n\n project: z.optional(\n z.object({\n basePath: z.optional(z.string()),\n }),\n ),\n\n reactCompiler: z.optional(z.custom<boolean | ReactCompilerConfig>()),\n\n reactStrictMode: z.optional(z.boolean()),\n\n schemaExtraction: z.optional(\n z.object({\n enabled: z.optional(z.boolean()),\n enforceRequiredFields: z.optional(z.boolean()),\n path: z.optional(z.string()),\n watchPatterns: z.optional(z.array(z.string())),\n workspace: z.optional(z.string()),\n }),\n ),\n\n server: z.optional(\n z.object({\n hostname: z.optional(z.string()),\n port: z.optional(z.number()),\n }),\n ),\n\n studioHost: z.optional(z.string()),\n\n unstable_bundledDev: z.optional(z.boolean()),\n\n vite: z.optional(z.custom<UserViteConfig>()),\n\n typegen: z.optional(z.custom<Partial<TypeGenConfig> & {enabled?: boolean}>()),\n}) satisfies z.core.$ZodType<CliConfig>\n"],"names":["z","APP_VISIBILITIES","cliConfigSchema","object","api","optional","dataset","string","projectId","app","entry","icon","id","organizationId","title","visibility","enum","autoUpdates","boolean","deployment","appId","graphql","array","filterSuffix","generation","nonNullDocumentFields","playground","source","tag","workspace","mediaLibrary","aspectsPath","project","basePath","reactCompiler","custom","reactStrictMode","schemaExtraction","enabled","enforceRequiredFields","path","watchPatterns","server","hostname","port","number","studioHost","unstable_bundledDev","vite","typegen"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/config/cli/types/cliConfig.ts"],"sourcesContent":["import {type PluginOptions as
|
|
1
|
+
{"version":3,"sources":["../../../../src/config/cli/types/cliConfig.ts"],"sourcesContent":["import {type PluginOptions as BabelReactCompilerOptions} from 'babel-plugin-react-compiler'\nimport {type ReactCompilerOptions as OxcReactCompilerOptions} from 'oxc-transform-react'\n\nimport {type UserViteConfig} from './userViteConfig'\n\n/**\n * Configuration for React Compiler.\n *\n * The `transform` field selects which React Compiler transform to run; the\n * remaining options are passed to the selected transform:\n *\n * - `'babel'` (default) - the Babel plugin\n * ({@link https://www.npmjs.com/package/babel-plugin-react-compiler | babel-plugin-react-compiler}\n * must be installed in your project)\n * - `'oxc'` (experimental) - the native Rust port\n * ({@link https://www.npmjs.com/package/oxc-transform-react | oxc-transform-react}\n * must be installed in your project)\n *\n * @public\n */\nexport type ReactCompilerConfig =\n | (BabelReactCompilerOptions & {transform?: 'babel'})\n | (OxcReactCompilerOptions & {transform: 'oxc'})\n\nexport interface TypeGenConfig {\n formatGeneratedCode: boolean\n generates: string\n overloadClientMethods: boolean\n path: string | string[]\n schema: string\n}\n\n/**\n * Dashboard visibility an application can declare. Mirrors Brett's canonical\n * `VISIBILITIES` — the source of truth lives in the application service.\n * @public\n */\nexport const APP_VISIBILITIES = ['default', 'unlisted', 'disabled'] as const\n/** @public */\nexport type AppVisibility = (typeof APP_VISIBILITIES)[number]\n\n/**\n * @public\n */\nexport interface CliConfig {\n /** The project ID and dataset the Sanity CLI should use to run its commands */\n api?: {\n dataset?: string\n projectId?: string\n }\n\n /** Configuration for custom Sanity apps built with the App SDK */\n app?: {\n /** The entrypoint for your custom app. By default, `src/App.tsx` */\n entry?: string\n /**\n * Path to an icon file relative to project root.\n * The file must be an SVG.\n */\n icon?: string\n /** @deprecated Use deployment.appId */\n id?: string\n /** The ID for the Sanity organization that manages this application */\n organizationId?: string\n /** The title of the custom app, as it is seen in Dashboard UI */\n title?: string\n /** Dashboard visibility of the application. Defaults to `default`. */\n visibility?: AppVisibility\n }\n\n /** @deprecated Use deployment.autoUpdates */\n autoUpdates?: boolean\n\n /** Options for custom app and Studio deployments */\n deployment?: {\n /**\n * The ID for your custom app or Studio. Generated when deploying your app or Studio for the first time.\n * Get your app ID by either:\n * 1. Checking the output of `sanity deploy`, or\n * 2. Checking your project’s Studio tab at https://sanity.io/manage\n *\n * @remarks This is required for all custom app deployments, and for Studios opting in to fine grained version control.\n * {@link https://www.sanity.io/docs/studio/latest-version-of-sanity#k0896ed4574b7}\n */\n appId?: string\n /**\n * Enable automatic updates for your Studio or custom app’s Sanity dependencies.\n * {@link https://www.sanity.io/docs/studio/latest-version-of-sanity}\n */\n autoUpdates?: boolean\n }\n\n /** Define the GraphQL APIs that the CLI can deploy and interact with */\n graphql?: Array<{\n filterSuffix?: string\n generation?: 'gen1' | 'gen2' | 'gen3'\n id?: string\n nonNullDocumentFields?: boolean\n playground?: boolean\n source?: string\n tag?: string\n workspace?: string\n }>\n\n /** Configuration for the Media Library */\n mediaLibrary?: {\n /** The path to the Media Library aspects directory. When using the CLI to manage aspects, this is the directory they will be read from and written to. */\n aspectsPath?: string\n }\n\n /** Contains the property `basePath` which lets you change the top-level slug for the Studio. You typically need to set this if you embed the Studio in another application where it is one of many routes. Defaults to an empty string. */\n project?: {\n basePath?: string\n }\n\n /**\n * Configuration options for React Compiler. Pass `true` to enable it with\n * the default (babel) transform, or an object to configure it — see\n * {@link ReactCompilerConfig} for choosing between the babel and the\n * experimental oxc transform.\n */\n reactCompiler?: boolean | ReactCompilerConfig\n\n /** Wraps the Studio in \\<React.StrictMode\\> root to aid in flagging potential problems related to concurrent features (startTransition, useTransition, useDeferredValue, Suspense). Can also be enabled by setting SANITY_STUDIO_REACT_STRICT_MODE=\"true\"|\"false\". It only applies to sanity dev in development mode and is ignored in sanity build and in production. Defaults to true. */\n reactStrictMode?: boolean\n\n /**\n * Configuration for schema extraction (`sanity schema extract`)\n */\n schemaExtraction?: {\n /**\n * Enable schema extraction as part of sanity dev and sanity build\n */\n enabled?: boolean\n\n /**\n * When true, schema fields marked as required will be non-optional in the output.\n * Defaults to `false`\n */\n enforceRequiredFields?: boolean\n\n /**\n * Output path for the extracted schema file.\n * Defaults to `schema.json` in the working directory.\n */\n path?: string\n\n /**\n * Additional glob patterns to watch for schema changes in watch mode.\n * These extend the default patterns:\n * - `sanity.config.{js,jsx,ts,tsx,mjs}`\n * - `schema*\\/**\\/*.{js,jsx,ts,tsx,mjs}`\n */\n watchPatterns?: string[]\n\n /**\n * The name of the workspace to generate a schema for. Required if your Sanity project has more than one\n * workspace.\n */\n workspace?: string\n }\n\n /** Defines the hostname and port that the development server should run on. hostname defaults to localhost, and port to 3333. */\n server?: {\n hostname?: string\n port?: number\n }\n\n /** @deprecated Use deployment.appId */\n studioHost?: string\n\n /**\n * Configuration for Sanity typegen\n */\n typegen?: Partial<TypeGenConfig> & {\n /**\n * Enable typegen as part of sanity dev and sanity build.\n * When enabled, types are generated on startup and when files change.\n * Defaults to `false`\n */\n enabled?: boolean\n }\n\n /**\n * Enable Vite's experimental bundled dev mode for `sanity dev`. This serves bundled\n * files during development, which can speed up startup and reloads for large projects.\n * Defaults to `false`.\n *\n * Unstable: may change or be removed without notice while the underlying Vite\n * feature (`experimental.bundledDev`) is experimental.\n * {@link https://vite.dev/guide/rolldown#full-bundle-mode}\n */\n unstable_bundledDev?: boolean\n\n /** Exposes the default Vite configuration for custom apps and the Studio so it can be changed and extended. */\n vite?: UserViteConfig\n}\n\n/**\n * A raw key-value store for CLI user configuration.\n * Unlike the typed `getCliUserConfig`/`setCliUserConfig`, this operates on\n * arbitrary keys without schema validation.\n *\n * @public\n */\nexport interface ConfigStore {\n /** Remove a key from the config file. */\n delete: (key: string) => void\n /** Read a value by key. Returns `undefined` if the key does not exist. */\n get: (key: string) => unknown\n /** Write a value by key, merging it into the existing config. */\n set: (key: string, value: unknown) => void\n}\n"],"names":["APP_VISIBILITIES"],"mappings":"AAgCA;;;;CAIC,GACD,OAAO,MAAMA,mBAAmB;IAAC;IAAW;IAAY;CAAW,CAAS"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CLIError } from '@oclif/core/errors';
|
|
2
|
+
import { exitCodes } from '../exitCodes.js';
|
|
2
3
|
/**
|
|
3
4
|
* Error thrown when a prompt is attempted in a non-interactive environment
|
|
4
5
|
* (e.g., CI, non-TTY, piped stdin). Callers can catch this specific error
|
|
@@ -9,7 +10,7 @@ import { CLIError } from '@oclif/core/errors';
|
|
|
9
10
|
constructor(promptName){
|
|
10
11
|
super(`Cannot run "${promptName}" prompt in a non-interactive environment. ` + 'Provide the required value via flags or environment variables, or run in an interactive terminal.', {
|
|
11
12
|
code: 'NON_INTERACTIVE',
|
|
12
|
-
exit:
|
|
13
|
+
exit: exitCodes.RUNTIME_ERROR
|
|
13
14
|
});
|
|
14
15
|
this.name = 'NonInteractiveError';
|
|
15
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/errors/NonInteractiveError.ts"],"sourcesContent":["import {CLIError} from '@oclif/core/errors'\n\n/**\n * Error thrown when a prompt is attempted in a non-interactive environment\n * (e.g., CI, non-TTY, piped stdin). Callers can catch this specific error\n * to provide appropriate fallback behavior.\n *\n * Extends `CLIError` to suppress stack traces in user-facing output.\n */\nexport class NonInteractiveError extends CLIError {\n constructor(promptName: string) {\n super(\n `Cannot run \"${promptName}\" prompt in a non-interactive environment. ` +\n 'Provide the required value via flags or environment variables, or run in an interactive terminal.',\n {code: 'NON_INTERACTIVE', exit:
|
|
1
|
+
{"version":3,"sources":["../../src/errors/NonInteractiveError.ts"],"sourcesContent":["import {CLIError} from '@oclif/core/errors'\n\nimport {exitCodes} from '../exitCodes.js'\n\n/**\n * Error thrown when a prompt is attempted in a non-interactive environment\n * (e.g., CI, non-TTY, piped stdin). Callers can catch this specific error\n * to provide appropriate fallback behavior.\n *\n * Extends `CLIError` to suppress stack traces in user-facing output.\n */\nexport class NonInteractiveError extends CLIError {\n constructor(promptName: string) {\n super(\n `Cannot run \"${promptName}\" prompt in a non-interactive environment. ` +\n 'Provide the required value via flags or environment variables, or run in an interactive terminal.',\n {code: 'NON_INTERACTIVE', exit: exitCodes.RUNTIME_ERROR},\n )\n this.name = 'NonInteractiveError'\n }\n}\n"],"names":["CLIError","exitCodes","NonInteractiveError","promptName","code","exit","RUNTIME_ERROR","name"],"mappings":"AAAA,SAAQA,QAAQ,QAAO,qBAAoB;AAE3C,SAAQC,SAAS,QAAO,kBAAiB;AAEzC;;;;;;CAMC,GACD,OAAO,MAAMC,4BAA4BF;IACvC,YAAYG,UAAkB,CAAE;QAC9B,KAAK,CACH,CAAC,YAAY,EAAEA,WAAW,2CAA2C,CAAC,GACpE,qGACF;YAACC,MAAM;YAAmBC,MAAMJ,UAAUK,aAAa;QAAA;QAEzD,IAAI,CAACC,IAAI,GAAG;IACd;AACF"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CLIError } from '@oclif/core/errors';
|
|
2
|
+
import { exitCodes } from '../exitCodes.js';
|
|
2
3
|
import { isRecord } from '../util/isRecord.js';
|
|
3
4
|
/**
|
|
4
5
|
* Error thrown when a project root directory cannot be found.
|
|
@@ -13,7 +14,7 @@ import { isRecord } from '../util/isRecord.js';
|
|
|
13
14
|
constructor(message, options){
|
|
14
15
|
super(message, {
|
|
15
16
|
code: 'PROJECT_ROOT_NOT_FOUND',
|
|
16
|
-
exit:
|
|
17
|
+
exit: exitCodes.RUNTIME_ERROR,
|
|
17
18
|
suggestions: options?.suggestions
|
|
18
19
|
});
|
|
19
20
|
this.name = 'ProjectRootNotFoundError';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/errors/ProjectRootNotFoundError.ts"],"sourcesContent":["import {CLIError} from '@oclif/core/errors'\n\nimport {isRecord} from '../util/isRecord.js'\n\n/**\n * Error thrown when a project root directory cannot be found.\n *\n * This occurs when the CLI is run outside a Sanity project directory\n * (one containing `sanity.config.(ts|js)` or `sanity.cli.(ts|js)`).\n *\n * Extends `CLIError` to suppress stack traces in user-facing output.\n *\n * @internal\n */\nexport class ProjectRootNotFoundError extends CLIError {\n constructor(message: string, options?: {cause?: Error; suggestions?: string[]}) {\n super(message, {code: 'PROJECT_ROOT_NOT_FOUND'
|
|
1
|
+
{"version":3,"sources":["../../src/errors/ProjectRootNotFoundError.ts"],"sourcesContent":["import {CLIError} from '@oclif/core/errors'\n\nimport {exitCodes} from '../exitCodes.js'\nimport {isRecord} from '../util/isRecord.js'\n\n/**\n * Error thrown when a project root directory cannot be found.\n *\n * This occurs when the CLI is run outside a Sanity project directory\n * (one containing `sanity.config.(ts|js)` or `sanity.cli.(ts|js)`).\n *\n * Extends `CLIError` to suppress stack traces in user-facing output.\n *\n * @internal\n */\nexport class ProjectRootNotFoundError extends CLIError {\n constructor(message: string, options?: {cause?: Error; suggestions?: string[]}) {\n super(message, {\n code: 'PROJECT_ROOT_NOT_FOUND',\n exit: exitCodes.RUNTIME_ERROR,\n suggestions: options?.suggestions,\n })\n this.name = 'ProjectRootNotFoundError'\n if (options?.cause) {\n this.cause = options.cause\n }\n }\n}\n\n/**\n * Returns whether or not the given error is a `ProjectRootNotFoundError`\n *\n * @param err - The error to check\n * @returns `true` if the error is a `ProjectRootNotFoundError`, `false` otherwise\n * @internal\n */\nexport function isProjectRootNotFoundError(err: unknown): err is ProjectRootNotFoundError {\n return (\n isRecord(err) &&\n 'name' in err &&\n err.name === 'ProjectRootNotFoundError' &&\n 'code' in err &&\n err.code === 'PROJECT_ROOT_NOT_FOUND' &&\n 'message' in err &&\n typeof err.message === 'string'\n )\n}\n"],"names":["CLIError","exitCodes","isRecord","ProjectRootNotFoundError","message","options","code","exit","RUNTIME_ERROR","suggestions","name","cause","isProjectRootNotFoundError","err"],"mappings":"AAAA,SAAQA,QAAQ,QAAO,qBAAoB;AAE3C,SAAQC,SAAS,QAAO,kBAAiB;AACzC,SAAQC,QAAQ,QAAO,sBAAqB;AAE5C;;;;;;;;;CASC,GACD,OAAO,MAAMC,iCAAiCH;IAC5C,YAAYI,OAAe,EAAEC,OAAiD,CAAE;QAC9E,KAAK,CAACD,SAAS;YACbE,MAAM;YACNC,MAAMN,UAAUO,aAAa;YAC7BC,aAAaJ,SAASI;QACxB;QACA,IAAI,CAACC,IAAI,GAAG;QACZ,IAAIL,SAASM,OAAO;YAClB,IAAI,CAACA,KAAK,GAAGN,QAAQM,KAAK;QAC5B;IACF;AACF;AAEA;;;;;;CAMC,GACD,OAAO,SAASC,2BAA2BC,GAAY;IACrD,OACEX,SAASW,QACT,UAAUA,OACVA,IAAIH,IAAI,KAAK,8BACb,UAAUG,OACVA,IAAIP,IAAI,KAAK,4BACb,aAAaO,OACb,OAAOA,IAAIT,OAAO,KAAK;AAE3B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as ConfigStore, r as CliConfig } from "./cliConfig-
|
|
1
|
+
import { i as ConfigStore, r as CliConfig } from "./cliConfig-DrUV6Wp6.js";
|
|
2
2
|
import { t as ProjectRootResult } from "./recursivelyResolveProjectRoot-BE54uEP6.js";
|
|
3
3
|
import { z } from "zod/mini";
|
|
4
4
|
import { Workspace } from "sanity";
|
|
@@ -262,4 +262,4 @@ declare function findStudioConfigPath(basePath: string): Promise<string>;
|
|
|
262
262
|
*/
|
|
263
263
|
declare function tryFindStudioConfigPath(basePath: string): Promise<string | undefined>;
|
|
264
264
|
export { getStudioWorkspaces as a, findProjectRoot as c, getCliConfigUncached as d, getCliToken as f, clearCliTokenCache as g, setCliUserConfig as h, isStudioConfig as i, getCliConfigSync as l, getUserConfig as m, tryFindStudioConfigPath as n, getStudioConfig as o, getCliUserConfig as p, findPathForFiles as r, findProjectRootSync as s, findStudioConfigPath as t, getCliConfig as u };
|
|
265
|
-
//# sourceMappingURL=findStudioConfigPath-
|
|
265
|
+
//# sourceMappingURL=findStudioConfigPath-DeBa0pMT.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as ReactCompilerConfig, o as TypeGenConfig, s as UserViteConfig } from "./cliConfig-DrUV6Wp6.js";
|
|
2
2
|
import { z } from "zod/mini";
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
@@ -45,47 +45,7 @@ declare const cliConfigSchema: z.ZodMiniObject<{
|
|
|
45
45
|
project: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
46
46
|
basePath: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
47
47
|
}, z.core.$strip>>;
|
|
48
|
-
reactCompiler: z.ZodMiniOptional<z.ZodMiniCustom<
|
|
49
|
-
environment: Partial<import("babel-plugin-react-compiler").EnvironmentConfig>;
|
|
50
|
-
logger: import("babel-plugin-react-compiler").Logger | null;
|
|
51
|
-
gating: import("babel-plugin-react-compiler").ExternalFunction | null;
|
|
52
|
-
dynamicGating: {
|
|
53
|
-
source: string;
|
|
54
|
-
} | null;
|
|
55
|
-
panicThreshold: "none" | "all_errors" | "critical_errors";
|
|
56
|
-
noEmit: boolean;
|
|
57
|
-
compilationMode: "syntax" | "infer" | "annotation" | "all";
|
|
58
|
-
eslintSuppressionRules: Array<string> | null | undefined;
|
|
59
|
-
flowSuppressions: boolean;
|
|
60
|
-
ignoreUseNoForget: boolean;
|
|
61
|
-
customOptOutDirectives: string[] | null;
|
|
62
|
-
sources: Array<string> | ((filename: string) => boolean) | null;
|
|
63
|
-
enableReanimatedCheck: boolean;
|
|
64
|
-
target: "17" | "18" | "19" | {
|
|
65
|
-
kind: "donotuse_meta_internal";
|
|
66
|
-
runtimeModule: string;
|
|
67
|
-
};
|
|
68
|
-
}>, Partial<{
|
|
69
|
-
environment: Partial<import("babel-plugin-react-compiler").EnvironmentConfig>;
|
|
70
|
-
logger: import("babel-plugin-react-compiler").Logger | null;
|
|
71
|
-
gating: import("babel-plugin-react-compiler").ExternalFunction | null;
|
|
72
|
-
dynamicGating: {
|
|
73
|
-
source: string;
|
|
74
|
-
} | null;
|
|
75
|
-
panicThreshold: "none" | "all_errors" | "critical_errors";
|
|
76
|
-
noEmit: boolean;
|
|
77
|
-
compilationMode: "syntax" | "infer" | "annotation" | "all";
|
|
78
|
-
eslintSuppressionRules: Array<string> | null | undefined;
|
|
79
|
-
flowSuppressions: boolean;
|
|
80
|
-
ignoreUseNoForget: boolean;
|
|
81
|
-
customOptOutDirectives: string[] | null;
|
|
82
|
-
sources: Array<string> | ((filename: string) => boolean) | null;
|
|
83
|
-
enableReanimatedCheck: boolean;
|
|
84
|
-
target: "17" | "18" | "19" | {
|
|
85
|
-
kind: "donotuse_meta_internal";
|
|
86
|
-
runtimeModule: string;
|
|
87
|
-
};
|
|
88
|
-
}>>>;
|
|
48
|
+
reactCompiler: z.ZodMiniOptional<z.ZodMiniCustom<boolean | ReactCompilerConfig, boolean | ReactCompilerConfig>>;
|
|
89
49
|
reactStrictMode: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
90
50
|
schemaExtraction: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
91
51
|
enabled: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
@@ -137,4 +97,4 @@ type CoreAppManifest = z.infer<typeof coreAppManifestSchema>;
|
|
|
137
97
|
declare const studioManifestSchema: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
|
|
138
98
|
type StudioManifest = z.infer<typeof studioManifestSchema>;
|
|
139
99
|
export { cliConfigSchema as a, studioManifestSchema as i, StudioManifest as n, coreAppManifestSchema as r, CoreAppManifest as t };
|
|
140
|
-
//# sourceMappingURL=schemas-
|
|
100
|
+
//# sourceMappingURL=schemas-Y-KwP413.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as CliConfig } from "./cliConfig-
|
|
1
|
+
import { r as CliConfig } from "./cliConfig-DrUV6Wp6.js";
|
|
2
2
|
/**
|
|
3
3
|
* Boolean brand check — used for config-load routing, kept exported for
|
|
4
4
|
* backward compatibility. For the typed narrowing (the app's declared fields),
|
|
@@ -19,4 +19,4 @@ type ApplicationType = (typeof APPLICATION_TYPES)[number];
|
|
|
19
19
|
*/
|
|
20
20
|
declare function parseWorkbenchCliConfig(cliConfig: unknown, projectDir: string): CliConfig;
|
|
21
21
|
export { isWorkbenchApp as n, parseWorkbenchCliConfig as r, ApplicationType as t };
|
|
22
|
-
//# sourceMappingURL=workbenchApp-
|
|
22
|
+
//# sourceMappingURL=workbenchApp-CSYpReA-.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/cli-core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Sanity CLI core package",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
},
|
|
131
131
|
"devDependencies": {
|
|
132
132
|
"@eslint/compat": "^2.1.0",
|
|
133
|
-
"@sanity/pkg-utils": "^12.
|
|
133
|
+
"@sanity/pkg-utils": "^12.2.0",
|
|
134
134
|
"@sanity/telemetry": "^1.1.0",
|
|
135
135
|
"@swc/cli": "^0.8.1",
|
|
136
136
|
"@swc/core": "^1.15.43",
|
|
@@ -138,20 +138,25 @@
|
|
|
138
138
|
"@types/node": "^22.20.0",
|
|
139
139
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
140
140
|
"eslint": "^10.7.0",
|
|
141
|
+
"oxc-transform-react": "^0.145.0",
|
|
141
142
|
"publint": "^0.3.21",
|
|
142
143
|
"sanity": "^6.7.0",
|
|
143
144
|
"typescript": "^6.0.3",
|
|
144
|
-
"vitest": "^4.1.
|
|
145
|
+
"vitest": "^4.1.11",
|
|
145
146
|
"@repo/package.config": "0.0.1",
|
|
146
147
|
"@repo/tsconfig": "3.70.0",
|
|
147
148
|
"@sanity/eslint-config-cli": "1.1.3"
|
|
148
149
|
},
|
|
149
150
|
"peerDependencies": {
|
|
150
|
-
"babel-plugin-react-compiler": "*"
|
|
151
|
+
"babel-plugin-react-compiler": "*",
|
|
152
|
+
"oxc-transform-react": "*"
|
|
151
153
|
},
|
|
152
154
|
"peerDependenciesMeta": {
|
|
153
155
|
"babel-plugin-react-compiler": {
|
|
154
156
|
"optional": true
|
|
157
|
+
},
|
|
158
|
+
"oxc-transform-react": {
|
|
159
|
+
"optional": true
|
|
155
160
|
}
|
|
156
161
|
},
|
|
157
162
|
"engines": {
|