@sanity/cli-core 0.1.0-alpha.12 → 0.1.0-alpha.14

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.
@@ -1,9 +1,11 @@
1
1
  import { Command } from '@oclif/core';
2
2
  import { getCliConfig } from './config/cli/getCliConfig.js';
3
3
  import { findProjectRoot } from './config/findProjectRoot.js';
4
+ import { subdebug } from './debug.js';
4
5
  import { getGlobalCliClient, getProjectCliClient } from './services/apiClient.js';
5
6
  import { getCliTelemetry } from './util/getCliTelemetry.js';
6
7
  import { isInteractive } from './util/isInteractive.js';
8
+ const debug = subdebug('sanityCommand');
7
9
  export class SanityCommand extends Command {
8
10
  args;
9
11
  flags;
@@ -48,6 +50,7 @@ export class SanityCommand extends Command {
48
50
  * @returns The CLI config.
49
51
  */ async getCliConfig() {
50
52
  const root = await this.getProjectRoot();
53
+ debug(`Using project root`, root);
51
54
  return getCliConfig(root.directory);
52
55
  }
53
56
  /**
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/SanityCommand.ts"],"sourcesContent":["import {Command, Interfaces} from '@oclif/core'\n\nimport {getCliConfig} from './config/cli/getCliConfig.js'\nimport {type CliConfig} from './config/cli/types/cliConfig.js'\nimport {findProjectRoot} from './config/findProjectRoot.js'\nimport {type ProjectRootResult} from './config/util/recursivelyResolveProjectRoot.js'\nimport {\n getGlobalCliClient,\n getProjectCliClient,\n type GlobalCliClientOptions,\n type ProjectCliClientOptions,\n} from './services/apiClient.js'\nimport {type CLITelemetryStore} from './telemetry/types.js'\nimport {type Output} from './types.js'\nimport {getCliTelemetry} from './util/getCliTelemetry.js'\nimport {isInteractive} from './util/isInteractive.js'\n\ntype Flags<T extends typeof Command> = Interfaces.InferredFlags<\n (typeof SanityCommand)['baseFlags'] & T['flags']\n>\n\ntype Args<T extends typeof Command> = Interfaces.InferredArgs<T['args']>\n\nexport abstract class SanityCommand<T extends typeof Command> extends Command {\n protected args!: Args<T>\n protected flags!: Flags<T>\n\n /**\n * Get the global API client.\n *\n * @param args - The global API client options.\n * @returns The global API client.\n *\n * @deprecated use `getGlobalCliClient` function directly instead.\n */\n protected getGlobalApiClient = (args: GlobalCliClientOptions) => getGlobalCliClient(args)\n\n /**\n * Get the project API client.\n *\n * @param args - The project API client options.\n * @returns The project API client.\n *\n * @deprecated use `getProjectCliClient` function directly instead.\n */\n protected getProjectApiClient = (args: ProjectCliClientOptions) => getProjectCliClient(args)\n\n /**\n * Helper for outputting to the console.\n *\n * @example\n * ```ts\n * this.output.log('Hello')\n * this.output.warn('Warning')\n * this.output.error('Error')\n * ```\n */\n protected output: Output = {\n error: this.error.bind(this),\n log: this.log.bind(this),\n warn: this.warn.bind(this),\n }\n\n /**\n * The telemetry store.\n *\n * @returns The telemetry store.\n */\n protected telemetry!: CLITelemetryStore\n\n /**\n * Get the CLI config.\n *\n * @returns The CLI config.\n */\n protected async getCliConfig(): Promise<CliConfig> {\n const root = await this.getProjectRoot()\n\n return getCliConfig(root.directory)\n }\n\n /**\n * Get the project ID from the CLI config.\n *\n * @returns The project ID or `undefined` if it's not set.\n */\n protected async getProjectId(): Promise<string | undefined> {\n const config = await this.getCliConfig()\n\n return config.api?.projectId\n }\n\n /**\n * Get the project's root directory by resolving the config\n *\n * @returns The project root result.\n */\n protected getProjectRoot(): Promise<ProjectRootResult> {\n return findProjectRoot(process.cwd())\n }\n\n public async init(): Promise<void> {\n const {args, flags} = await this.parse({\n args: this.ctor.args,\n baseFlags: (super.ctor as typeof SanityCommand).baseFlags,\n enableJsonFlag: this.ctor.enableJsonFlag,\n flags: this.ctor.flags,\n strict: this.ctor.strict,\n })\n\n this.args = args as Args<T>\n this.flags = flags as Flags<T>\n this.telemetry = getCliTelemetry()\n\n await super.init()\n }\n\n /**\n * Check if the command is running in unattended mode.\n *\n * This means the command should not ask for user input, instead using defaults where\n * possible, and if that does not make sense (eg there's missing information), then we\n * should error out (remember to exit with a non-zero code).\n *\n * Most commands should take an explicit `--yes` flag to enable unattended mode, but\n * some commands may also be run in unattended mode if `process.stdin` is not a TTY\n * (eg when running in a CI environment).\n */\n protected isUnattended(): boolean {\n return this.flags.yes || !this.resolveIsInteractive()\n }\n\n /**\n * Resolver for checking if the terminal is interactive. Override in tests to provide mock values.\n *\n * @returns Whether the terminal is interactive.\n */\n protected resolveIsInteractive(): boolean {\n return isInteractive()\n }\n}\n"],"names":["Command","getCliConfig","findProjectRoot","getGlobalCliClient","getProjectCliClient","getCliTelemetry","isInteractive","SanityCommand","args","flags","getGlobalApiClient","getProjectApiClient","output","error","bind","log","warn","telemetry","root","getProjectRoot","directory","getProjectId","config","api","projectId","process","cwd","init","parse","ctor","baseFlags","enableJsonFlag","strict","isUnattended","yes","resolveIsInteractive"],"mappings":"AAAA,SAAQA,OAAO,QAAmB,cAAa;AAE/C,SAAQC,YAAY,QAAO,+BAA8B;AAEzD,SAAQC,eAAe,QAAO,8BAA6B;AAE3D,SACEC,kBAAkB,EAClBC,mBAAmB,QAGd,0BAAyB;AAGhC,SAAQC,eAAe,QAAO,4BAA2B;AACzD,SAAQC,aAAa,QAAO,0BAAyB;AAQrD,OAAO,MAAeC,sBAAgDP;IAC1DQ,KAAc;IACdC,MAAgB;IAE1B;;;;;;;GAOC,GACD,AAAUC,qBAAqB,CAACF,OAAiCL,mBAAmBK,MAAK;IAEzF;;;;;;;GAOC,GACD,AAAUG,sBAAsB,CAACH,OAAkCJ,oBAAoBI,MAAK;IAE5F;;;;;;;;;GASC,GACD,AAAUI,SAAiB;QACzBC,OAAO,IAAI,CAACA,KAAK,CAACC,IAAI,CAAC,IAAI;QAC3BC,KAAK,IAAI,CAACA,GAAG,CAACD,IAAI,CAAC,IAAI;QACvBE,MAAM,IAAI,CAACA,IAAI,CAACF,IAAI,CAAC,IAAI;IAC3B,EAAC;IAED;;;;GAIC,GACD,AAAUG,UAA6B;IAEvC;;;;GAIC,GACD,MAAgBhB,eAAmC;QACjD,MAAMiB,OAAO,MAAM,IAAI,CAACC,cAAc;QAEtC,OAAOlB,aAAaiB,KAAKE,SAAS;IACpC;IAEA;;;;GAIC,GACD,MAAgBC,eAA4C;QAC1D,MAAMC,SAAS,MAAM,IAAI,CAACrB,YAAY;QAEtC,OAAOqB,OAAOC,GAAG,EAAEC;IACrB;IAEA;;;;GAIC,GACD,AAAUL,iBAA6C;QACrD,OAAOjB,gBAAgBuB,QAAQC,GAAG;IACpC;IAEA,MAAaC,OAAsB;QACjC,MAAM,EAACnB,IAAI,EAAEC,KAAK,EAAC,GAAG,MAAM,IAAI,CAACmB,KAAK,CAAC;YACrCpB,MAAM,IAAI,CAACqB,IAAI,CAACrB,IAAI;YACpBsB,WAAW,AAAC,KAAK,CAACD,KAA8BC,SAAS;YACzDC,gBAAgB,IAAI,CAACF,IAAI,CAACE,cAAc;YACxCtB,OAAO,IAAI,CAACoB,IAAI,CAACpB,KAAK;YACtBuB,QAAQ,IAAI,CAACH,IAAI,CAACG,MAAM;QAC1B;QAEA,IAAI,CAACxB,IAAI,GAAGA;QACZ,IAAI,CAACC,KAAK,GAAGA;QACb,IAAI,CAACQ,SAAS,GAAGZ;QAEjB,MAAM,KAAK,CAACsB;IACd;IAEA;;;;;;;;;;GAUC,GACD,AAAUM,eAAwB;QAChC,OAAO,IAAI,CAACxB,KAAK,CAACyB,GAAG,IAAI,CAAC,IAAI,CAACC,oBAAoB;IACrD;IAEA;;;;GAIC,GACD,AAAUA,uBAAgC;QACxC,OAAO7B;IACT;AACF"}
1
+ {"version":3,"sources":["../src/SanityCommand.ts"],"sourcesContent":["import {Command, Interfaces} from '@oclif/core'\n\nimport {getCliConfig} from './config/cli/getCliConfig.js'\nimport {type CliConfig} from './config/cli/types/cliConfig.js'\nimport {findProjectRoot} from './config/findProjectRoot.js'\nimport {type ProjectRootResult} from './config/util/recursivelyResolveProjectRoot.js'\nimport {subdebug} from './debug.js'\nimport {\n getGlobalCliClient,\n getProjectCliClient,\n type GlobalCliClientOptions,\n type ProjectCliClientOptions,\n} from './services/apiClient.js'\nimport {type CLITelemetryStore} from './telemetry/types.js'\nimport {type Output} from './types.js'\nimport {getCliTelemetry} from './util/getCliTelemetry.js'\nimport {isInteractive} from './util/isInteractive.js'\n\ntype Flags<T extends typeof Command> = Interfaces.InferredFlags<\n (typeof SanityCommand)['baseFlags'] & T['flags']\n>\n\ntype Args<T extends typeof Command> = Interfaces.InferredArgs<T['args']>\n\nconst debug = subdebug('sanityCommand')\n\nexport abstract class SanityCommand<T extends typeof Command> extends Command {\n protected args!: Args<T>\n protected flags!: Flags<T>\n\n /**\n * Get the global API client.\n *\n * @param args - The global API client options.\n * @returns The global API client.\n *\n * @deprecated use `getGlobalCliClient` function directly instead.\n */\n protected getGlobalApiClient = (args: GlobalCliClientOptions) => getGlobalCliClient(args)\n\n /**\n * Get the project API client.\n *\n * @param args - The project API client options.\n * @returns The project API client.\n *\n * @deprecated use `getProjectCliClient` function directly instead.\n */\n protected getProjectApiClient = (args: ProjectCliClientOptions) => getProjectCliClient(args)\n\n /**\n * Helper for outputting to the console.\n *\n * @example\n * ```ts\n * this.output.log('Hello')\n * this.output.warn('Warning')\n * this.output.error('Error')\n * ```\n */\n protected output: Output = {\n error: this.error.bind(this),\n log: this.log.bind(this),\n warn: this.warn.bind(this),\n }\n\n /**\n * The telemetry store.\n *\n * @returns The telemetry store.\n */\n protected telemetry!: CLITelemetryStore\n\n /**\n * Get the CLI config.\n *\n * @returns The CLI config.\n */\n protected async getCliConfig(): Promise<CliConfig> {\n const root = await this.getProjectRoot()\n\n debug(`Using project root`, root)\n return getCliConfig(root.directory)\n }\n\n /**\n * Get the project ID from the CLI config.\n *\n * @returns The project ID or `undefined` if it's not set.\n */\n protected async getProjectId(): Promise<string | undefined> {\n const config = await this.getCliConfig()\n\n return config.api?.projectId\n }\n\n /**\n * Get the project's root directory by resolving the config\n *\n * @returns The project root result.\n */\n protected getProjectRoot(): Promise<ProjectRootResult> {\n return findProjectRoot(process.cwd())\n }\n\n public async init(): Promise<void> {\n const {args, flags} = await this.parse({\n args: this.ctor.args,\n baseFlags: (super.ctor as typeof SanityCommand).baseFlags,\n enableJsonFlag: this.ctor.enableJsonFlag,\n flags: this.ctor.flags,\n strict: this.ctor.strict,\n })\n\n this.args = args as Args<T>\n this.flags = flags as Flags<T>\n this.telemetry = getCliTelemetry()\n\n await super.init()\n }\n\n /**\n * Check if the command is running in unattended mode.\n *\n * This means the command should not ask for user input, instead using defaults where\n * possible, and if that does not make sense (eg there's missing information), then we\n * should error out (remember to exit with a non-zero code).\n *\n * Most commands should take an explicit `--yes` flag to enable unattended mode, but\n * some commands may also be run in unattended mode if `process.stdin` is not a TTY\n * (eg when running in a CI environment).\n */\n protected isUnattended(): boolean {\n return this.flags.yes || !this.resolveIsInteractive()\n }\n\n /**\n * Resolver for checking if the terminal is interactive. Override in tests to provide mock values.\n *\n * @returns Whether the terminal is interactive.\n */\n protected resolveIsInteractive(): boolean {\n return isInteractive()\n }\n}\n"],"names":["Command","getCliConfig","findProjectRoot","subdebug","getGlobalCliClient","getProjectCliClient","getCliTelemetry","isInteractive","debug","SanityCommand","args","flags","getGlobalApiClient","getProjectApiClient","output","error","bind","log","warn","telemetry","root","getProjectRoot","directory","getProjectId","config","api","projectId","process","cwd","init","parse","ctor","baseFlags","enableJsonFlag","strict","isUnattended","yes","resolveIsInteractive"],"mappings":"AAAA,SAAQA,OAAO,QAAmB,cAAa;AAE/C,SAAQC,YAAY,QAAO,+BAA8B;AAEzD,SAAQC,eAAe,QAAO,8BAA6B;AAE3D,SAAQC,QAAQ,QAAO,aAAY;AACnC,SACEC,kBAAkB,EAClBC,mBAAmB,QAGd,0BAAyB;AAGhC,SAAQC,eAAe,QAAO,4BAA2B;AACzD,SAAQC,aAAa,QAAO,0BAAyB;AAQrD,MAAMC,QAAQL,SAAS;AAEvB,OAAO,MAAeM,sBAAgDT;IAC1DU,KAAc;IACdC,MAAgB;IAE1B;;;;;;;GAOC,GACD,AAAUC,qBAAqB,CAACF,OAAiCN,mBAAmBM,MAAK;IAEzF;;;;;;;GAOC,GACD,AAAUG,sBAAsB,CAACH,OAAkCL,oBAAoBK,MAAK;IAE5F;;;;;;;;;GASC,GACD,AAAUI,SAAiB;QACzBC,OAAO,IAAI,CAACA,KAAK,CAACC,IAAI,CAAC,IAAI;QAC3BC,KAAK,IAAI,CAACA,GAAG,CAACD,IAAI,CAAC,IAAI;QACvBE,MAAM,IAAI,CAACA,IAAI,CAACF,IAAI,CAAC,IAAI;IAC3B,EAAC;IAED;;;;GAIC,GACD,AAAUG,UAA6B;IAEvC;;;;GAIC,GACD,MAAgBlB,eAAmC;QACjD,MAAMmB,OAAO,MAAM,IAAI,CAACC,cAAc;QAEtCb,MAAM,CAAC,kBAAkB,CAAC,EAAEY;QAC5B,OAAOnB,aAAamB,KAAKE,SAAS;IACpC;IAEA;;;;GAIC,GACD,MAAgBC,eAA4C;QAC1D,MAAMC,SAAS,MAAM,IAAI,CAACvB,YAAY;QAEtC,OAAOuB,OAAOC,GAAG,EAAEC;IACrB;IAEA;;;;GAIC,GACD,AAAUL,iBAA6C;QACrD,OAAOnB,gBAAgByB,QAAQC,GAAG;IACpC;IAEA,MAAaC,OAAsB;QACjC,MAAM,EAACnB,IAAI,EAAEC,KAAK,EAAC,GAAG,MAAM,IAAI,CAACmB,KAAK,CAAC;YACrCpB,MAAM,IAAI,CAACqB,IAAI,CAACrB,IAAI;YACpBsB,WAAW,AAAC,KAAK,CAACD,KAA8BC,SAAS;YACzDC,gBAAgB,IAAI,CAACF,IAAI,CAACE,cAAc;YACxCtB,OAAO,IAAI,CAACoB,IAAI,CAACpB,KAAK;YACtBuB,QAAQ,IAAI,CAACH,IAAI,CAACG,MAAM;QAC1B;QAEA,IAAI,CAACxB,IAAI,GAAGA;QACZ,IAAI,CAACC,KAAK,GAAGA;QACb,IAAI,CAACQ,SAAS,GAAGb;QAEjB,MAAM,KAAK,CAACuB;IACd;IAEA;;;;;;;;;;GAUC,GACD,AAAUM,eAAwB;QAChC,OAAO,IAAI,CAACxB,KAAK,CAACyB,GAAG,IAAI,CAAC,IAAI,CAACC,oBAAoB;IACrD;IAEA;;;;GAIC,GACD,AAAUA,uBAAgC;QACxC,OAAO9B;IACT;AACF"}
@@ -40,6 +40,12 @@ import { z } from 'zod';
40
40
  }).optional(),
41
41
  reactCompiler: z.custom().optional(),
42
42
  reactStrictMode: z.boolean().optional(),
43
+ schemaExtraction: z.object({
44
+ enforceRequiredFields: z.boolean().optional(),
45
+ path: z.string().optional(),
46
+ watchPatterns: z.array(z.string()).optional(),
47
+ workspace: z.string().optional()
48
+ }).optional(),
43
49
  server: z.object({
44
50
  hostname: z.string().optional(),
45
51
  port: z.number().optional()
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/config/cli/schemas.ts"],"sourcesContent":["import {type TypeGenConfig} from '@sanity/codegen'\nimport {type PluginOptions as ReactCompilerConfig} from 'babel-plugin-react-compiler'\nimport {z} from 'zod'\n\nimport {type CliConfig} from './types/cliConfig'\nimport {type UserViteConfig} from './types/userViteConfig'\n\n/**\n * @public\n */\nexport const cliConfigSchema = z.object({\n api: z\n .object({\n dataset: z.string().optional(),\n projectId: z.string().optional(),\n })\n .optional(),\n\n app: z\n .object({\n entry: z.string().optional(),\n icon: z.string().optional(),\n id: z.string().optional(),\n organizationId: z.string().optional(),\n title: z.string().optional(),\n })\n .optional(),\n\n autoUpdates: z.boolean().optional(),\n\n deployment: z\n .object({\n appId: z.string().optional(),\n autoUpdates: z.boolean().optional(),\n })\n .optional(),\n\n graphql: z\n .array(\n z.object({\n filterSuffix: z.string().optional(),\n generation: z.enum(['gen1', 'gen2', 'gen3']).optional(),\n id: z.string().optional(),\n nonNullDocumentFields: z.boolean().optional(),\n playground: z.boolean().optional(),\n source: z.string().optional(),\n tag: z.string().optional(),\n workspace: z.string().optional(),\n }),\n )\n .optional(),\n\n mediaLibrary: z\n .object({\n aspectsPath: z.string().optional(),\n })\n .optional(),\n\n project: z\n .object({\n basePath: z.string().optional(),\n })\n .optional(),\n\n reactCompiler: z.custom<ReactCompilerConfig>().optional(),\n\n reactStrictMode: z.boolean().optional(),\n\n server: z\n .object({\n hostname: z.string().optional(),\n port: z.number().optional(),\n })\n .optional(),\n\n studioHost: z.string().optional(),\n\n vite: z.custom<UserViteConfig>().optional(),\n\n typegen: z.custom<TypeGenConfig>().optional(),\n}) satisfies z.ZodType<CliConfig>\n"],"names":["z","cliConfigSchema","object","api","dataset","string","optional","projectId","app","entry","icon","id","organizationId","title","autoUpdates","boolean","deployment","appId","graphql","array","filterSuffix","generation","enum","nonNullDocumentFields","playground","source","tag","workspace","mediaLibrary","aspectsPath","project","basePath","reactCompiler","custom","reactStrictMode","server","hostname","port","number","studioHost","vite","typegen"],"mappings":"AAEA,SAAQA,CAAC,QAAO,MAAK;AAKrB;;CAEC,GACD,OAAO,MAAMC,kBAAkBD,EAAEE,MAAM,CAAC;IACtCC,KAAKH,EACFE,MAAM,CAAC;QACNE,SAASJ,EAAEK,MAAM,GAAGC,QAAQ;QAC5BC,WAAWP,EAAEK,MAAM,GAAGC,QAAQ;IAChC,GACCA,QAAQ;IAEXE,KAAKR,EACFE,MAAM,CAAC;QACNO,OAAOT,EAAEK,MAAM,GAAGC,QAAQ;QAC1BI,MAAMV,EAAEK,MAAM,GAAGC,QAAQ;QACzBK,IAAIX,EAAEK,MAAM,GAAGC,QAAQ;QACvBM,gBAAgBZ,EAAEK,MAAM,GAAGC,QAAQ;QACnCO,OAAOb,EAAEK,MAAM,GAAGC,QAAQ;IAC5B,GACCA,QAAQ;IAEXQ,aAAad,EAAEe,OAAO,GAAGT,QAAQ;IAEjCU,YAAYhB,EACTE,MAAM,CAAC;QACNe,OAAOjB,EAAEK,MAAM,GAAGC,QAAQ;QAC1BQ,aAAad,EAAEe,OAAO,GAAGT,QAAQ;IACnC,GACCA,QAAQ;IAEXY,SAASlB,EACNmB,KAAK,CACJnB,EAAEE,MAAM,CAAC;QACPkB,cAAcpB,EAAEK,MAAM,GAAGC,QAAQ;QACjCe,YAAYrB,EAAEsB,IAAI,CAAC;YAAC;YAAQ;YAAQ;SAAO,EAAEhB,QAAQ;QACrDK,IAAIX,EAAEK,MAAM,GAAGC,QAAQ;QACvBiB,uBAAuBvB,EAAEe,OAAO,GAAGT,QAAQ;QAC3CkB,YAAYxB,EAAEe,OAAO,GAAGT,QAAQ;QAChCmB,QAAQzB,EAAEK,MAAM,GAAGC,QAAQ;QAC3BoB,KAAK1B,EAAEK,MAAM,GAAGC,QAAQ;QACxBqB,WAAW3B,EAAEK,MAAM,GAAGC,QAAQ;IAChC,IAEDA,QAAQ;IAEXsB,cAAc5B,EACXE,MAAM,CAAC;QACN2B,aAAa7B,EAAEK,MAAM,GAAGC,QAAQ;IAClC,GACCA,QAAQ;IAEXwB,SAAS9B,EACNE,MAAM,CAAC;QACN6B,UAAU/B,EAAEK,MAAM,GAAGC,QAAQ;IAC/B,GACCA,QAAQ;IAEX0B,eAAehC,EAAEiC,MAAM,GAAwB3B,QAAQ;IAEvD4B,iBAAiBlC,EAAEe,OAAO,GAAGT,QAAQ;IAErC6B,QAAQnC,EACLE,MAAM,CAAC;QACNkC,UAAUpC,EAAEK,MAAM,GAAGC,QAAQ;QAC7B+B,MAAMrC,EAAEsC,MAAM,GAAGhC,QAAQ;IAC3B,GACCA,QAAQ;IAEXiC,YAAYvC,EAAEK,MAAM,GAAGC,QAAQ;IAE/BkC,MAAMxC,EAAEiC,MAAM,GAAmB3B,QAAQ;IAEzCmC,SAASzC,EAAEiC,MAAM,GAAkB3B,QAAQ;AAC7C,GAAiC"}
1
+ {"version":3,"sources":["../../../src/config/cli/schemas.ts"],"sourcesContent":["import {type TypeGenConfig} from '@sanity/codegen'\nimport {type PluginOptions as ReactCompilerConfig} from 'babel-plugin-react-compiler'\nimport {z} from 'zod'\n\nimport {type CliConfig} from './types/cliConfig'\nimport {type UserViteConfig} from './types/userViteConfig'\n\n/**\n * @public\n */\nexport const cliConfigSchema = z.object({\n api: z\n .object({\n dataset: z.string().optional(),\n projectId: z.string().optional(),\n })\n .optional(),\n\n app: z\n .object({\n entry: z.string().optional(),\n icon: z.string().optional(),\n id: z.string().optional(),\n organizationId: z.string().optional(),\n title: z.string().optional(),\n })\n .optional(),\n\n autoUpdates: z.boolean().optional(),\n\n deployment: z\n .object({\n appId: z.string().optional(),\n autoUpdates: z.boolean().optional(),\n })\n .optional(),\n\n graphql: z\n .array(\n z.object({\n filterSuffix: z.string().optional(),\n generation: z.enum(['gen1', 'gen2', 'gen3']).optional(),\n id: z.string().optional(),\n nonNullDocumentFields: z.boolean().optional(),\n playground: z.boolean().optional(),\n source: z.string().optional(),\n tag: z.string().optional(),\n workspace: z.string().optional(),\n }),\n )\n .optional(),\n\n mediaLibrary: z\n .object({\n aspectsPath: z.string().optional(),\n })\n .optional(),\n\n project: z\n .object({\n basePath: z.string().optional(),\n })\n .optional(),\n\n reactCompiler: z.custom<ReactCompilerConfig>().optional(),\n\n reactStrictMode: z.boolean().optional(),\n\n schemaExtraction: z\n .object({\n enforceRequiredFields: z.boolean().optional(),\n path: z.string().optional(),\n watchPatterns: z.array(z.string()).optional(),\n workspace: z.string().optional(),\n })\n .optional(),\n\n server: z\n .object({\n hostname: z.string().optional(),\n port: z.number().optional(),\n })\n .optional(),\n\n studioHost: z.string().optional(),\n\n vite: z.custom<UserViteConfig>().optional(),\n\n typegen: z.custom<TypeGenConfig>().optional(),\n}) satisfies z.ZodType<CliConfig>\n"],"names":["z","cliConfigSchema","object","api","dataset","string","optional","projectId","app","entry","icon","id","organizationId","title","autoUpdates","boolean","deployment","appId","graphql","array","filterSuffix","generation","enum","nonNullDocumentFields","playground","source","tag","workspace","mediaLibrary","aspectsPath","project","basePath","reactCompiler","custom","reactStrictMode","schemaExtraction","enforceRequiredFields","path","watchPatterns","server","hostname","port","number","studioHost","vite","typegen"],"mappings":"AAEA,SAAQA,CAAC,QAAO,MAAK;AAKrB;;CAEC,GACD,OAAO,MAAMC,kBAAkBD,EAAEE,MAAM,CAAC;IACtCC,KAAKH,EACFE,MAAM,CAAC;QACNE,SAASJ,EAAEK,MAAM,GAAGC,QAAQ;QAC5BC,WAAWP,EAAEK,MAAM,GAAGC,QAAQ;IAChC,GACCA,QAAQ;IAEXE,KAAKR,EACFE,MAAM,CAAC;QACNO,OAAOT,EAAEK,MAAM,GAAGC,QAAQ;QAC1BI,MAAMV,EAAEK,MAAM,GAAGC,QAAQ;QACzBK,IAAIX,EAAEK,MAAM,GAAGC,QAAQ;QACvBM,gBAAgBZ,EAAEK,MAAM,GAAGC,QAAQ;QACnCO,OAAOb,EAAEK,MAAM,GAAGC,QAAQ;IAC5B,GACCA,QAAQ;IAEXQ,aAAad,EAAEe,OAAO,GAAGT,QAAQ;IAEjCU,YAAYhB,EACTE,MAAM,CAAC;QACNe,OAAOjB,EAAEK,MAAM,GAAGC,QAAQ;QAC1BQ,aAAad,EAAEe,OAAO,GAAGT,QAAQ;IACnC,GACCA,QAAQ;IAEXY,SAASlB,EACNmB,KAAK,CACJnB,EAAEE,MAAM,CAAC;QACPkB,cAAcpB,EAAEK,MAAM,GAAGC,QAAQ;QACjCe,YAAYrB,EAAEsB,IAAI,CAAC;YAAC;YAAQ;YAAQ;SAAO,EAAEhB,QAAQ;QACrDK,IAAIX,EAAEK,MAAM,GAAGC,QAAQ;QACvBiB,uBAAuBvB,EAAEe,OAAO,GAAGT,QAAQ;QAC3CkB,YAAYxB,EAAEe,OAAO,GAAGT,QAAQ;QAChCmB,QAAQzB,EAAEK,MAAM,GAAGC,QAAQ;QAC3BoB,KAAK1B,EAAEK,MAAM,GAAGC,QAAQ;QACxBqB,WAAW3B,EAAEK,MAAM,GAAGC,QAAQ;IAChC,IAEDA,QAAQ;IAEXsB,cAAc5B,EACXE,MAAM,CAAC;QACN2B,aAAa7B,EAAEK,MAAM,GAAGC,QAAQ;IAClC,GACCA,QAAQ;IAEXwB,SAAS9B,EACNE,MAAM,CAAC;QACN6B,UAAU/B,EAAEK,MAAM,GAAGC,QAAQ;IAC/B,GACCA,QAAQ;IAEX0B,eAAehC,EAAEiC,MAAM,GAAwB3B,QAAQ;IAEvD4B,iBAAiBlC,EAAEe,OAAO,GAAGT,QAAQ;IAErC6B,kBAAkBnC,EACfE,MAAM,CAAC;QACNkC,uBAAuBpC,EAAEe,OAAO,GAAGT,QAAQ;QAC3C+B,MAAMrC,EAAEK,MAAM,GAAGC,QAAQ;QACzBgC,eAAetC,EAAEmB,KAAK,CAACnB,EAAEK,MAAM,IAAIC,QAAQ;QAC3CqB,WAAW3B,EAAEK,MAAM,GAAGC,QAAQ;IAChC,GACCA,QAAQ;IAEXiC,QAAQvC,EACLE,MAAM,CAAC;QACNsC,UAAUxC,EAAEK,MAAM,GAAGC,QAAQ;QAC7BmC,MAAMzC,EAAE0C,MAAM,GAAGpC,QAAQ;IAC3B,GACCA,QAAQ;IAEXqC,YAAY3C,EAAEK,MAAM,GAAGC,QAAQ;IAE/BsC,MAAM5C,EAAEiC,MAAM,GAAmB3B,QAAQ;IAEzCuC,SAAS7C,EAAEiC,MAAM,GAAkB3B,QAAQ;AAC7C,GAAiC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/config/cli/types/cliConfig.ts"],"sourcesContent":["import {type TypeGenConfig} from '@sanity/codegen'\nimport {type PluginOptions as ReactCompilerConfig} from 'babel-plugin-react-compiler'\n\nimport {type UserViteConfig} from './userViteConfig'\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 /** String encoding of an icon (typically an SVG) */\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. Used in Dashboard and in the browser tab */\n title?: string\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 /** Configuration options for React Compiler */\n reactCompiler?: 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 false. */\n reactStrictMode?: boolean\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 /** Exposes the default Vite configuration for custom apps and the Studio so it can be changed and extended. */\n vite?: UserViteConfig\n}\n"],"names":[],"mappings":"AAKA;;CAEC,GACD,WAwFC"}
1
+ {"version":3,"sources":["../../../../src/config/cli/types/cliConfig.ts"],"sourcesContent":["import {type TypeGenConfig} from '@sanity/codegen'\nimport {type PluginOptions as ReactCompilerConfig} from 'babel-plugin-react-compiler'\n\nimport {type UserViteConfig} from './userViteConfig'\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 /** String encoding of an icon (typically an SVG) */\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. Used in Dashboard and in the browser tab */\n title?: string\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 /** Configuration options for React Compiler */\n reactCompiler?: 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 false. */\n reactStrictMode?: boolean\n\n /**\n * Configuration for schema extraction (`sanity schema extract`)\n */\n schemaExtraction?: {\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 /** Exposes the default Vite configuration for custom apps and the Studio so it can be changed and extended. */\n vite?: UserViteConfig\n}\n"],"names":[],"mappings":"AAKA;;CAEC,GACD,WAuHC"}
package/dist/index.d.ts CHANGED
@@ -5,11 +5,8 @@ import ConfigStore from 'configstore'
5
5
  import {ConsentStatus} from '@sanity/telemetry'
6
6
  import {Debugger} from 'debug'
7
7
  import debugIt from 'debug'
8
- import {EnvironmentConfig} from 'babel-plugin-react-compiler'
9
- import {ExternalFunction} from 'babel-plugin-react-compiler'
10
8
  import {InlineConfig} from 'vite'
11
9
  import {Interfaces} from '@oclif/core'
12
- import {Logger} from 'babel-plugin-react-compiler'
13
10
  import {PluginOptions} from 'babel-plugin-react-compiler'
14
11
  import {SanityClient} from 'sanity'
15
12
  import {SanityClient as SanityClient_2} from '@sanity/client'
@@ -19,8 +16,8 @@ import {URL as URL_2} from 'node:url'
19
16
  import {Worker as Worker_2} from 'node:worker_threads'
20
17
  import {WorkerOptions as WorkerOptions_2} from 'node:worker_threads'
21
18
  import {Workspace} from 'sanity'
22
- import {z} from 'zod'
23
- import * as z_2 from 'zod'
19
+ import * as z from 'zod'
20
+ import {z as z_2} from 'zod'
24
21
 
25
22
  declare type Args<T extends typeof Command> = Interfaces.InferredArgs<T['args']>
26
23
 
@@ -103,6 +100,33 @@ export declare interface CliConfig {
103
100
  reactCompiler?: PluginOptions
104
101
  /** 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 false. */
105
102
  reactStrictMode?: boolean
103
+ /**
104
+ * Configuration for schema extraction (`sanity schema extract`)
105
+ */
106
+ schemaExtraction?: {
107
+ /**
108
+ * When true, schema fields marked as required will be non-optional in the output.
109
+ * Defaults to `false`
110
+ */
111
+ enforceRequiredFields?: boolean
112
+ /**
113
+ * Output path for the extracted schema file.
114
+ * Defaults to `schema.json` in the working directory.
115
+ */
116
+ path?: string
117
+ /**
118
+ * Additional glob patterns to watch for schema changes in watch mode.
119
+ * These extend the default patterns:
120
+ * - `sanity.config.{js,jsx,ts,tsx,mjs}`
121
+ * - `schema*\/**\/*.{js,jsx,ts,tsx,mjs}`
122
+ */
123
+ watchPatterns?: string[]
124
+ /**
125
+ * The name of the workspace to generate a schema for. Required if your Sanity project has more than one
126
+ * workspace.
127
+ */
128
+ workspace?: string
129
+ }
106
130
  /** Defines the hostname and port that the development server should run on. hostname defaults to localhost, and port to 3333. */
107
131
  server?: {
108
132
  hostname?: string
@@ -118,169 +142,6 @@ export declare interface CliConfig {
118
142
  vite?: UserViteConfig
119
143
  }
120
144
 
121
- /**
122
- * @public
123
- */
124
- export declare const cliConfigSchema: z.ZodObject<
125
- {
126
- api: z.ZodOptional<
127
- z.ZodObject<
128
- {
129
- dataset: z.ZodOptional<z.ZodString>
130
- projectId: z.ZodOptional<z.ZodString>
131
- },
132
- z.core.$strip
133
- >
134
- >
135
- app: z.ZodOptional<
136
- z.ZodObject<
137
- {
138
- entry: z.ZodOptional<z.ZodString>
139
- icon: z.ZodOptional<z.ZodString>
140
- id: z.ZodOptional<z.ZodString>
141
- organizationId: z.ZodOptional<z.ZodString>
142
- title: z.ZodOptional<z.ZodString>
143
- },
144
- z.core.$strip
145
- >
146
- >
147
- autoUpdates: z.ZodOptional<z.ZodBoolean>
148
- deployment: z.ZodOptional<
149
- z.ZodObject<
150
- {
151
- appId: z.ZodOptional<z.ZodString>
152
- autoUpdates: z.ZodOptional<z.ZodBoolean>
153
- },
154
- z.core.$strip
155
- >
156
- >
157
- graphql: z.ZodOptional<
158
- z.ZodArray<
159
- z.ZodObject<
160
- {
161
- filterSuffix: z.ZodOptional<z.ZodString>
162
- generation: z.ZodOptional<
163
- z.ZodEnum<{
164
- gen1: 'gen1'
165
- gen2: 'gen2'
166
- gen3: 'gen3'
167
- }>
168
- >
169
- id: z.ZodOptional<z.ZodString>
170
- nonNullDocumentFields: z.ZodOptional<z.ZodBoolean>
171
- playground: z.ZodOptional<z.ZodBoolean>
172
- source: z.ZodOptional<z.ZodString>
173
- tag: z.ZodOptional<z.ZodString>
174
- workspace: z.ZodOptional<z.ZodString>
175
- },
176
- z.core.$strip
177
- >
178
- >
179
- >
180
- mediaLibrary: z.ZodOptional<
181
- z.ZodObject<
182
- {
183
- aspectsPath: z.ZodOptional<z.ZodString>
184
- },
185
- z.core.$strip
186
- >
187
- >
188
- project: z.ZodOptional<
189
- z.ZodObject<
190
- {
191
- basePath: z.ZodOptional<z.ZodString>
192
- },
193
- z.core.$strip
194
- >
195
- >
196
- reactCompiler: z.ZodOptional<
197
- z.ZodCustom<
198
- Partial<{
199
- environment: Partial<EnvironmentConfig>
200
- logger: Logger | null
201
- gating: ExternalFunction | null
202
- dynamicGating: {
203
- source: string
204
- } | null
205
- panicThreshold: 'none' | 'all_errors' | 'critical_errors'
206
- noEmit: boolean
207
- compilationMode: 'syntax' | 'infer' | 'annotation' | 'all'
208
- eslintSuppressionRules: Array<string> | null | undefined
209
- flowSuppressions: boolean
210
- ignoreUseNoForget: boolean
211
- customOptOutDirectives: string[] | null
212
- sources: Array<string> | ((filename: string) => boolean) | null
213
- enableReanimatedCheck: boolean
214
- target:
215
- | '17'
216
- | '18'
217
- | '19'
218
- | {
219
- kind: 'donotuse_meta_internal'
220
- runtimeModule: string
221
- }
222
- }>,
223
- Partial<{
224
- environment: Partial<EnvironmentConfig>
225
- logger: Logger | null
226
- gating: ExternalFunction | null
227
- dynamicGating: {
228
- source: string
229
- } | null
230
- panicThreshold: 'none' | 'all_errors' | 'critical_errors'
231
- noEmit: boolean
232
- compilationMode: 'syntax' | 'infer' | 'annotation' | 'all'
233
- eslintSuppressionRules: Array<string> | null | undefined
234
- flowSuppressions: boolean
235
- ignoreUseNoForget: boolean
236
- customOptOutDirectives: string[] | null
237
- sources: Array<string> | ((filename: string) => boolean) | null
238
- enableReanimatedCheck: boolean
239
- target:
240
- | '17'
241
- | '18'
242
- | '19'
243
- | {
244
- kind: 'donotuse_meta_internal'
245
- runtimeModule: string
246
- }
247
- }>
248
- >
249
- >
250
- reactStrictMode: z.ZodOptional<z.ZodBoolean>
251
- server: z.ZodOptional<
252
- z.ZodObject<
253
- {
254
- hostname: z.ZodOptional<z.ZodString>
255
- port: z.ZodOptional<z.ZodNumber>
256
- },
257
- z.core.$strip
258
- >
259
- >
260
- studioHost: z.ZodOptional<z.ZodString>
261
- vite: z.ZodOptional<z.ZodCustom<UserViteConfig, UserViteConfig>>
262
- typegen: z.ZodOptional<
263
- z.ZodCustom<
264
- {
265
- formatGeneratedCode: boolean
266
- generates: string
267
- overloadClientMethods: boolean
268
- path: string | string[]
269
- schema: string
270
- },
271
- {
272
- formatGeneratedCode: boolean
273
- generates: string
274
- overloadClientMethods: boolean
275
- path: string | string[]
276
- schema: string
277
- }
278
- >
279
- >
280
- },
281
- z.core.$strip
282
- >
283
-
284
145
  /**
285
146
  * @public
286
147
  */
@@ -291,28 +152,28 @@ export declare type CLITelemetryStore = TelemetryLogger<TelemetryUserProperties>
291
152
  *
292
153
  * @internal
293
154
  */
294
- declare type CliUserConfig = z.infer<z.ZodObject<typeof cliUserConfigSchema>>
155
+ declare type CliUserConfig = z_2.infer<z_2.ZodObject<typeof cliUserConfigSchema>>
295
156
 
296
157
  declare const cliUserConfigSchema: {
297
- authToken: z.ZodOptional<z.ZodString>
298
- telemetryConsent: z.ZodOptional<
299
- z.ZodObject<
158
+ authToken: z_2.ZodOptional<z_2.ZodString>
159
+ telemetryConsent: z_2.ZodOptional<
160
+ z_2.ZodObject<
300
161
  {
301
- updatedAt: z.ZodOptional<z.ZodNumber>
302
- value: z.ZodObject<
162
+ updatedAt: z_2.ZodOptional<z_2.ZodNumber>
163
+ value: z_2.ZodObject<
303
164
  {
304
- status: z.ZodEnum<{
165
+ status: z_2.ZodEnum<{
305
166
  undetermined: 'undetermined'
306
167
  unset: 'unset'
307
168
  granted: 'granted'
308
169
  denied: 'denied'
309
170
  }>
310
- type: z.ZodString
171
+ type: z_2.ZodString
311
172
  },
312
- z.core.$loose
173
+ z_2.core.$loose
313
174
  >
314
175
  },
315
- z.core.$strip
176
+ z_2.core.$strip
316
177
  >
317
178
  >
318
179
  }
@@ -322,15 +183,15 @@ export declare function colorizeJson(input: unknown): string
322
183
  /**
323
184
  * @internal
324
185
  */
325
- declare const configDefinition: z_2.ZodObject<
186
+ declare const configDefinition: z.ZodObject<
326
187
  {
327
- formatGeneratedCode: z_2.ZodDefault<z_2.ZodBoolean>
328
- generates: z_2.ZodDefault<z_2.ZodString>
329
- overloadClientMethods: z_2.ZodDefault<z_2.ZodBoolean>
330
- path: z_2.ZodDefault<z_2.ZodUnion<[z_2.ZodString, z_2.ZodArray<z_2.ZodString>]>>
331
- schema: z_2.ZodDefault<z_2.ZodString>
188
+ formatGeneratedCode: z.ZodDefault<z.ZodBoolean>
189
+ generates: z.ZodDefault<z.ZodString>
190
+ overloadClientMethods: z.ZodDefault<z.ZodBoolean>
191
+ path: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString>]>>
192
+ schema: z.ZodDefault<z.ZodString>
332
193
  },
333
- z_2.core.$strip
194
+ z.core.$strip
334
195
  >
335
196
 
336
197
  export declare type ConsentInformation =
@@ -818,7 +679,7 @@ export declare interface Output {
818
679
  *
819
680
  * @public
820
681
  */
821
- export declare type PackageJson = z.infer<typeof packageJsonSchema>
682
+ export declare type PackageJson = z_2.infer<typeof packageJsonSchema>
822
683
 
823
684
  /**
824
685
  * Comprehensive package.json schema including all common properties.
@@ -827,33 +688,33 @@ export declare type PackageJson = z.infer<typeof packageJsonSchema>
827
688
  * 🟠ℹ️ SINCE THIS IS USED IN A NUMBER OF LOCATIONS WHERE ℹ️🟠
828
689
  * 🟠ℹ️ WE CANNOT ENFORCE/GUARANTEE ANY PARTICULAR PROPS ℹ️🟠
829
690
  */
830
- declare const packageJsonSchema: z.ZodObject<
691
+ declare const packageJsonSchema: z_2.ZodObject<
831
692
  {
832
- name: z.ZodString
833
- version: z.ZodString
834
- dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>
835
- devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>
836
- peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>
837
- exports: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>
838
- main: z.ZodOptional<z.ZodString>
839
- types: z.ZodOptional<z.ZodString>
840
- author: z.ZodOptional<z.ZodString>
841
- description: z.ZodOptional<z.ZodString>
842
- engines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>
843
- license: z.ZodOptional<z.ZodString>
844
- private: z.ZodOptional<z.ZodBoolean>
845
- repository: z.ZodOptional<
846
- z.ZodObject<
693
+ name: z_2.ZodString
694
+ version: z_2.ZodString
695
+ dependencies: z_2.ZodOptional<z_2.ZodRecord<z_2.ZodString, z_2.ZodString>>
696
+ devDependencies: z_2.ZodOptional<z_2.ZodRecord<z_2.ZodString, z_2.ZodString>>
697
+ peerDependencies: z_2.ZodOptional<z_2.ZodRecord<z_2.ZodString, z_2.ZodString>>
698
+ exports: z_2.ZodOptional<z_2.ZodRecord<z_2.ZodString, z_2.ZodAny>>
699
+ main: z_2.ZodOptional<z_2.ZodString>
700
+ types: z_2.ZodOptional<z_2.ZodString>
701
+ author: z_2.ZodOptional<z_2.ZodString>
702
+ description: z_2.ZodOptional<z_2.ZodString>
703
+ engines: z_2.ZodOptional<z_2.ZodRecord<z_2.ZodString, z_2.ZodString>>
704
+ license: z_2.ZodOptional<z_2.ZodString>
705
+ private: z_2.ZodOptional<z_2.ZodBoolean>
706
+ repository: z_2.ZodOptional<
707
+ z_2.ZodObject<
847
708
  {
848
- type: z.ZodString
849
- url: z.ZodString
709
+ type: z_2.ZodString
710
+ url: z_2.ZodString
850
711
  },
851
- z.core.$strip
712
+ z_2.core.$strip
852
713
  >
853
714
  >
854
- scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>
715
+ scripts: z_2.ZodOptional<z_2.ZodRecord<z_2.ZodString, z_2.ZodString>>
855
716
  },
856
- z.core.$loose
717
+ z_2.core.$loose
857
718
  >
858
719
 
859
720
  /**
@@ -921,99 +782,99 @@ export declare interface ProjectRootResult {
921
782
  type: 'app' | 'studio'
922
783
  }
923
784
 
924
- declare const rawConfigSchema: z.ZodUnion<
785
+ declare const rawConfigSchema: z_2.ZodUnion<
925
786
  readonly [
926
- z.ZodArray<
927
- z.ZodObject<
787
+ z_2.ZodArray<
788
+ z_2.ZodObject<
928
789
  {
929
- basePath: z.ZodString
930
- name: z.ZodString
931
- plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown>>
932
- title: z.ZodString
933
- unstable_sources: z.ZodArray<
934
- z.ZodObject<
790
+ basePath: z_2.ZodString
791
+ name: z_2.ZodString
792
+ plugins: z_2.ZodOptional<z_2.ZodArray<z_2.ZodUnknown>>
793
+ title: z_2.ZodString
794
+ unstable_sources: z_2.ZodArray<
795
+ z_2.ZodObject<
935
796
  {
936
- dataset: z.ZodString
937
- projectId: z.ZodString
938
- schema: z.ZodObject<
797
+ dataset: z_2.ZodString
798
+ projectId: z_2.ZodString
799
+ schema: z_2.ZodObject<
939
800
  {
940
- _original: z.ZodObject<
801
+ _original: z_2.ZodObject<
941
802
  {
942
- name: z.ZodOptional<z.ZodString>
943
- types: z.ZodArray<z.ZodObject<{}, z.core.$loose>>
803
+ name: z_2.ZodOptional<z_2.ZodString>
804
+ types: z_2.ZodArray<z_2.ZodObject<{}, z_2.core.$loose>>
944
805
  },
945
- z.core.$strip
806
+ z_2.core.$strip
946
807
  >
947
808
  },
948
- z.core.$strip
809
+ z_2.core.$strip
949
810
  >
950
811
  },
951
- z.core.$strip
812
+ z_2.core.$strip
952
813
  >
953
814
  >
954
- dataset: z.ZodString
955
- projectId: z.ZodString
956
- schema: z.ZodObject<
815
+ dataset: z_2.ZodString
816
+ projectId: z_2.ZodString
817
+ schema: z_2.ZodObject<
957
818
  {
958
- _original: z.ZodObject<
819
+ _original: z_2.ZodObject<
959
820
  {
960
- name: z.ZodOptional<z.ZodString>
961
- types: z.ZodArray<z.ZodObject<{}, z.core.$loose>>
821
+ name: z_2.ZodOptional<z_2.ZodString>
822
+ types: z_2.ZodArray<z_2.ZodObject<{}, z_2.core.$loose>>
962
823
  },
963
- z.core.$strip
824
+ z_2.core.$strip
964
825
  >
965
826
  },
966
- z.core.$strip
827
+ z_2.core.$strip
967
828
  >
968
829
  },
969
- z.core.$strip
830
+ z_2.core.$strip
970
831
  >
971
832
  >,
972
- z.ZodObject<
833
+ z_2.ZodObject<
973
834
  {
974
- basePath: z.ZodOptional<z.ZodString>
975
- name: z.ZodOptional<z.ZodString>
976
- plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown>>
977
- schema: z.ZodOptional<
978
- z.ZodObject<
835
+ basePath: z_2.ZodOptional<z_2.ZodString>
836
+ name: z_2.ZodOptional<z_2.ZodString>
837
+ plugins: z_2.ZodOptional<z_2.ZodArray<z_2.ZodUnknown>>
838
+ schema: z_2.ZodOptional<
839
+ z_2.ZodObject<
979
840
  {
980
- name: z.ZodOptional<z.ZodString>
981
- types: z.ZodArray<z.ZodObject<{}, z.core.$loose>>
841
+ name: z_2.ZodOptional<z_2.ZodString>
842
+ types: z_2.ZodArray<z_2.ZodObject<{}, z_2.core.$loose>>
982
843
  },
983
- z.core.$strip
844
+ z_2.core.$strip
984
845
  >
985
846
  >
986
- title: z.ZodOptional<z.ZodString>
987
- unstable_sources: z.ZodArray<
988
- z.ZodObject<
847
+ title: z_2.ZodOptional<z_2.ZodString>
848
+ unstable_sources: z_2.ZodArray<
849
+ z_2.ZodObject<
989
850
  {
990
- dataset: z.ZodString
991
- projectId: z.ZodString
992
- schema: z.ZodObject<
851
+ dataset: z_2.ZodString
852
+ projectId: z_2.ZodString
853
+ schema: z_2.ZodObject<
993
854
  {
994
- _original: z.ZodObject<
855
+ _original: z_2.ZodObject<
995
856
  {
996
- name: z.ZodOptional<z.ZodString>
997
- types: z.ZodArray<z.ZodObject<{}, z.core.$loose>>
857
+ name: z_2.ZodOptional<z_2.ZodString>
858
+ types: z_2.ZodArray<z_2.ZodObject<{}, z_2.core.$loose>>
998
859
  },
999
- z.core.$strip
860
+ z_2.core.$strip
1000
861
  >
1001
862
  },
1002
- z.core.$strip
863
+ z_2.core.$strip
1003
864
  >
1004
865
  },
1005
- z.core.$strip
866
+ z_2.core.$strip
1006
867
  >
1007
868
  >
1008
- dataset: z.ZodString
1009
- projectId: z.ZodString
869
+ dataset: z_2.ZodString
870
+ projectId: z_2.ZodString
1010
871
  },
1011
- z.core.$loose
872
+ z_2.core.$loose
1012
873
  >,
1013
874
  ]
1014
875
  >
1015
876
 
1016
- declare type RawStudioConfig = z.infer<typeof rawConfigSchema>
877
+ declare type RawStudioConfig = z_2.infer<typeof rawConfigSchema>
1017
878
 
1018
879
  /**
1019
880
  * Reads and parses an NDJSON (newline-delimited JSON) file containing telemetry events.
@@ -1076,54 +937,54 @@ export declare function recursivelyResolveProjectRootSync(
1076
937
 
1077
938
  declare type RequireProps<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>
1078
939
 
1079
- declare const resolvedConfigSchema: z.ZodArray<
1080
- z.ZodObject<
940
+ declare const resolvedConfigSchema: z_2.ZodArray<
941
+ z_2.ZodObject<
1081
942
  {
1082
- basePath: z.ZodString
1083
- name: z.ZodString
1084
- plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown>>
1085
- title: z.ZodString
1086
- unstable_sources: z.ZodArray<
1087
- z.ZodObject<
943
+ basePath: z_2.ZodString
944
+ name: z_2.ZodString
945
+ plugins: z_2.ZodOptional<z_2.ZodArray<z_2.ZodUnknown>>
946
+ title: z_2.ZodString
947
+ unstable_sources: z_2.ZodArray<
948
+ z_2.ZodObject<
1088
949
  {
1089
- dataset: z.ZodString
1090
- projectId: z.ZodString
1091
- schema: z.ZodObject<
950
+ dataset: z_2.ZodString
951
+ projectId: z_2.ZodString
952
+ schema: z_2.ZodObject<
1092
953
  {
1093
- _original: z.ZodObject<
954
+ _original: z_2.ZodObject<
1094
955
  {
1095
- name: z.ZodOptional<z.ZodString>
1096
- types: z.ZodArray<z.ZodObject<{}, z.core.$loose>>
956
+ name: z_2.ZodOptional<z_2.ZodString>
957
+ types: z_2.ZodArray<z_2.ZodObject<{}, z_2.core.$loose>>
1097
958
  },
1098
- z.core.$strip
959
+ z_2.core.$strip
1099
960
  >
1100
961
  },
1101
- z.core.$strip
962
+ z_2.core.$strip
1102
963
  >
1103
964
  },
1104
- z.core.$strip
965
+ z_2.core.$strip
1105
966
  >
1106
967
  >
1107
- dataset: z.ZodString
1108
- projectId: z.ZodString
1109
- schema: z.ZodObject<
968
+ dataset: z_2.ZodString
969
+ projectId: z_2.ZodString
970
+ schema: z_2.ZodObject<
1110
971
  {
1111
- _original: z.ZodObject<
972
+ _original: z_2.ZodObject<
1112
973
  {
1113
- name: z.ZodOptional<z.ZodString>
1114
- types: z.ZodArray<z.ZodObject<{}, z.core.$loose>>
974
+ name: z_2.ZodOptional<z_2.ZodString>
975
+ types: z_2.ZodArray<z_2.ZodObject<{}, z_2.core.$loose>>
1115
976
  },
1116
- z.core.$strip
977
+ z_2.core.$strip
1117
978
  >
1118
979
  },
1119
- z.core.$strip
980
+ z_2.core.$strip
1120
981
  >
1121
982
  },
1122
- z.core.$strip
983
+ z_2.core.$strip
1123
984
  >
1124
985
  >
1125
986
 
1126
- declare type ResolvedStudioConfig = z.infer<typeof resolvedConfigSchema>
987
+ declare type ResolvedStudioConfig = z_2.infer<typeof resolvedConfigSchema>
1127
988
 
1128
989
  /**
1129
990
  * Resolves and imports a package from the local project's node_modules,
@@ -1397,7 +1258,7 @@ declare interface TsxWorkerTaskOptions extends RequireProps<WorkerOptions_2, 'na
1397
1258
  rootPath: string
1398
1259
  }
1399
1260
 
1400
- declare type TypeGenConfig = z_2.infer<typeof configDefinition>
1261
+ declare type TypeGenConfig = z.infer<typeof configDefinition>
1401
1262
 
1402
1263
  /**
1403
1264
  * @public
package/dist/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  export * from './config/cli/getCliConfig.js';
2
2
  export * from './config/cli/getCliConfigSync.js';
3
- export { cliConfigSchema } from './config/cli/schemas.js';
4
3
  export * from './config/findProjectRoot.js';
5
4
  export * from './config/findProjectRootSync.js';
6
5
  export * from './config/studio/getStudioConfig.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './config/cli/getCliConfig.js'\nexport * from './config/cli/getCliConfigSync.js'\nexport {cliConfigSchema} from './config/cli/schemas.js'\nexport {type CliConfig} from './config/cli/types/cliConfig.js'\nexport {type UserViteConfig} from './config/cli/types/userViteConfig.js'\nexport * from './config/findProjectRoot.js'\nexport * from './config/findProjectRootSync.js'\nexport * from './config/studio/getStudioConfig.js'\nexport * from './config/studio/getStudioWorkspaces.js'\nexport * from './config/util/findConfigsPaths.js'\nexport * from './config/util/findStudioConfigPath.js'\nexport {type ProjectRootResult} from './config/util/recursivelyResolveProjectRoot.js'\nexport * from './debug.js'\nexport * from './loaders/studio/studioWorkerTask.js'\nexport * from './loaders/tsx/tsxWorkerTask.js'\nexport * from './SanityCommand.js'\nexport * from './services/apiClient.js'\nexport * from './services/cliUserConfig.js'\nexport * from './services/getCliToken.js'\nexport * from './telemetry/createTelemetryStore.js'\nexport * from './telemetry/flushTelemetryFiles.js'\nexport * from './telemetry/getTelemetryBaseInfo.js'\nexport * from './telemetry/telemetryStoreDebug.js'\nexport {\n type CLITelemetryStore,\n type ConsentInformation,\n type TelemetryUserProperties,\n} from './telemetry/types.js'\nexport {type Output, type SanityOrgUser} from './types.js'\nexport * from './util/createExpiringConfig.js'\nexport {doImport} from './util/doImport.js'\nexport * from './util/environment/mockBrowserEnvironment.js'\nexport * from './util/fileExists.js'\nexport {\n clearCliTelemetry,\n CLI_TELEMETRY_SYMBOL,\n getCliTelemetry,\n setCliTelemetry,\n} from './util/getCliTelemetry.js'\nexport * from './util/getEmptyAuth.js'\nexport * from './util/getSanityEnvVar.js'\nexport * from './util/getSanityUrl.js'\nexport * from './util/getUserConfig.js'\nexport * from './util/isCi.js'\nexport * from './util/isInteractive.js'\nexport * from './util/isRecord.js'\nexport * from './util/isStaging.js'\nexport * from './util/isTrueish.js'\nexport * from './util/normalizePath.js'\nexport * from './util/parseStringFlag.js'\nexport * from './util/readNDJSON.js'\nexport * from './util/readPackageJson.js'\nexport * from './util/resolveLocalPackage.js'\nexport * from './util/safeStructuredClone.js'\nexport * from './util/tryGetDefaultExport.js'\nexport * from './ux/colorizeJson.js'\nexport * from './ux/formatObject.js'\nexport * from './ux/printKeyValue.js'\nexport * from './ux/timer.js'\n"],"names":["cliConfigSchema","doImport","clearCliTelemetry","CLI_TELEMETRY_SYMBOL","getCliTelemetry","setCliTelemetry"],"mappings":"AAAA,cAAc,+BAA8B;AAC5C,cAAc,mCAAkC;AAChD,SAAQA,eAAe,QAAO,0BAAyB;AAGvD,cAAc,8BAA6B;AAC3C,cAAc,kCAAiC;AAC/C,cAAc,qCAAoC;AAClD,cAAc,yCAAwC;AACtD,cAAc,oCAAmC;AACjD,cAAc,wCAAuC;AAErD,cAAc,aAAY;AAC1B,cAAc,uCAAsC;AACpD,cAAc,iCAAgC;AAC9C,cAAc,qBAAoB;AAClC,cAAc,0BAAyB;AACvC,cAAc,8BAA6B;AAC3C,cAAc,4BAA2B;AACzC,cAAc,sCAAqC;AACnD,cAAc,qCAAoC;AAClD,cAAc,sCAAqC;AACnD,cAAc,qCAAoC;AAOlD,cAAc,iCAAgC;AAC9C,SAAQC,QAAQ,QAAO,qBAAoB;AAC3C,cAAc,+CAA8C;AAC5D,cAAc,uBAAsB;AACpC,SACEC,iBAAiB,EACjBC,oBAAoB,EACpBC,eAAe,EACfC,eAAe,QACV,4BAA2B;AAClC,cAAc,yBAAwB;AACtC,cAAc,4BAA2B;AACzC,cAAc,yBAAwB;AACtC,cAAc,0BAAyB;AACvC,cAAc,iBAAgB;AAC9B,cAAc,0BAAyB;AACvC,cAAc,qBAAoB;AAClC,cAAc,sBAAqB;AACnC,cAAc,sBAAqB;AACnC,cAAc,0BAAyB;AACvC,cAAc,4BAA2B;AACzC,cAAc,uBAAsB;AACpC,cAAc,4BAA2B;AACzC,cAAc,gCAA+B;AAC7C,cAAc,gCAA+B;AAC7C,cAAc,gCAA+B;AAC7C,cAAc,uBAAsB;AACpC,cAAc,uBAAsB;AACpC,cAAc,wBAAuB;AACrC,cAAc,gBAAe"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './config/cli/getCliConfig.js'\nexport * from './config/cli/getCliConfigSync.js'\nexport {type CliConfig} from './config/cli/types/cliConfig.js'\nexport {type UserViteConfig} from './config/cli/types/userViteConfig.js'\nexport * from './config/findProjectRoot.js'\nexport * from './config/findProjectRootSync.js'\nexport * from './config/studio/getStudioConfig.js'\nexport * from './config/studio/getStudioWorkspaces.js'\nexport * from './config/util/findConfigsPaths.js'\nexport * from './config/util/findStudioConfigPath.js'\nexport {type ProjectRootResult} from './config/util/recursivelyResolveProjectRoot.js'\nexport * from './debug.js'\nexport * from './loaders/studio/studioWorkerTask.js'\nexport * from './loaders/tsx/tsxWorkerTask.js'\nexport * from './SanityCommand.js'\nexport * from './services/apiClient.js'\nexport * from './services/cliUserConfig.js'\nexport * from './services/getCliToken.js'\nexport * from './telemetry/createTelemetryStore.js'\nexport * from './telemetry/flushTelemetryFiles.js'\nexport * from './telemetry/getTelemetryBaseInfo.js'\nexport * from './telemetry/telemetryStoreDebug.js'\nexport {\n type CLITelemetryStore,\n type ConsentInformation,\n type TelemetryUserProperties,\n} from './telemetry/types.js'\nexport {type Output, type SanityOrgUser} from './types.js'\nexport * from './util/createExpiringConfig.js'\nexport {doImport} from './util/doImport.js'\nexport * from './util/environment/mockBrowserEnvironment.js'\nexport * from './util/fileExists.js'\nexport {\n clearCliTelemetry,\n CLI_TELEMETRY_SYMBOL,\n getCliTelemetry,\n setCliTelemetry,\n} from './util/getCliTelemetry.js'\nexport * from './util/getEmptyAuth.js'\nexport * from './util/getSanityEnvVar.js'\nexport * from './util/getSanityUrl.js'\nexport * from './util/getUserConfig.js'\nexport * from './util/isCi.js'\nexport * from './util/isInteractive.js'\nexport * from './util/isRecord.js'\nexport * from './util/isStaging.js'\nexport * from './util/isTrueish.js'\nexport * from './util/normalizePath.js'\nexport * from './util/parseStringFlag.js'\nexport * from './util/readNDJSON.js'\nexport * from './util/readPackageJson.js'\nexport * from './util/resolveLocalPackage.js'\nexport * from './util/safeStructuredClone.js'\nexport * from './util/tryGetDefaultExport.js'\nexport * from './ux/colorizeJson.js'\nexport * from './ux/formatObject.js'\nexport * from './ux/printKeyValue.js'\nexport * from './ux/timer.js'\n"],"names":["doImport","clearCliTelemetry","CLI_TELEMETRY_SYMBOL","getCliTelemetry","setCliTelemetry"],"mappings":"AAAA,cAAc,+BAA8B;AAC5C,cAAc,mCAAkC;AAGhD,cAAc,8BAA6B;AAC3C,cAAc,kCAAiC;AAC/C,cAAc,qCAAoC;AAClD,cAAc,yCAAwC;AACtD,cAAc,oCAAmC;AACjD,cAAc,wCAAuC;AAErD,cAAc,aAAY;AAC1B,cAAc,uCAAsC;AACpD,cAAc,iCAAgC;AAC9C,cAAc,qBAAoB;AAClC,cAAc,0BAAyB;AACvC,cAAc,8BAA6B;AAC3C,cAAc,4BAA2B;AACzC,cAAc,sCAAqC;AACnD,cAAc,qCAAoC;AAClD,cAAc,sCAAqC;AACnD,cAAc,qCAAoC;AAOlD,cAAc,iCAAgC;AAC9C,SAAQA,QAAQ,QAAO,qBAAoB;AAC3C,cAAc,+CAA8C;AAC5D,cAAc,uBAAsB;AACpC,SACEC,iBAAiB,EACjBC,oBAAoB,EACpBC,eAAe,EACfC,eAAe,QACV,4BAA2B;AAClC,cAAc,yBAAwB;AACtC,cAAc,4BAA2B;AACzC,cAAc,yBAAwB;AACtC,cAAc,0BAAyB;AACvC,cAAc,iBAAgB;AAC9B,cAAc,0BAAyB;AACvC,cAAc,qBAAoB;AAClC,cAAc,sBAAqB;AACnC,cAAc,sBAAqB;AACnC,cAAc,0BAAyB;AACvC,cAAc,4BAA2B;AACzC,cAAc,uBAAsB;AACpC,cAAc,4BAA2B;AACzC,cAAc,gCAA+B;AAC7C,cAAc,gCAA+B;AAC7C,cAAc,gCAA+B;AAC7C,cAAc,uBAAsB;AACpC,cAAc,uBAAsB;AACpC,cAAc,wBAAuB;AACrC,cAAc,gBAAe"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/cli-core",
3
- "version": "0.1.0-alpha.12",
3
+ "version": "0.1.0-alpha.14",
4
4
  "description": "Sanity CLI core package",
5
5
  "keywords": [
6
6
  "sanity",
@@ -52,7 +52,7 @@
52
52
  "configstore": "^7.0.0",
53
53
  "debug": "^4.4.3",
54
54
  "get-tsconfig": "^4.13.6",
55
- "import-meta-resolve": "^4.1.0",
55
+ "import-meta-resolve": "^4.2.0",
56
56
  "jsdom": "^27.4.0",
57
57
  "json-lexer": "^1.2.0",
58
58
  "log-symbols": "^7.0.1",
@@ -80,8 +80,8 @@
80
80
  "typescript": "^5.9.3",
81
81
  "vitest": "^4.0.18",
82
82
  "@repo/package.config": "0.0.1",
83
- "@repo/tsconfig": "3.70.0",
84
- "@sanity/eslint-config-cli": "0.0.0-alpha.2"
83
+ "@sanity/eslint-config-cli": "0.0.0-alpha.2",
84
+ "@repo/tsconfig": "3.70.0"
85
85
  },
86
86
  "peerDependencies": {
87
87
  "@sanity/telemetry": ">=0.8.1 <0.9.0"