@sanity/cli-core 3.14.0 → 3.14.2
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/util/environment/getStudioEnvironmentVariables.js +2 -6
- package/dist/util/environment/getStudioEnvironmentVariables.js.map +1 -1
- package/dist/util/getLocalPackageVersion.js +3 -3
- package/dist/util/getLocalPackageVersion.js.map +1 -1
- package/dist/util/resolveLocalPackage.js +18 -2
- package/dist/util/resolveLocalPackage.js.map +1 -1
- package/package.json +7 -7
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { resolve } from 'node:path';
|
|
2
|
-
import { pathToFileURL } from 'node:url';
|
|
3
|
-
import { moduleResolve } from 'import-meta-resolve';
|
|
4
1
|
import { doImport } from '../doImport.js';
|
|
2
|
+
import { resolveLocalPackagePath } from '../resolveLocalPackage.js';
|
|
5
3
|
/**
|
|
6
4
|
* Loads the `getStudioEnvironmentVariables` function from the studio's
|
|
7
5
|
* installed `sanity` package and returns the environment variables.
|
|
@@ -13,12 +11,10 @@ import { doImport } from '../doImport.js';
|
|
|
13
11
|
* @returns Object containing studio environment variables
|
|
14
12
|
* @internal
|
|
15
13
|
*/ export async function getStudioEnvironmentVariables(rootPath) {
|
|
16
|
-
// Create a fake config URL - doesn't have to be correct, just need the root path
|
|
17
|
-
const fakeConfigUrl = pathToFileURL(resolve(rootPath, 'sanity.config.mjs'));
|
|
18
14
|
// Load `getStudioEnvironmentVariables` from the `sanity/cli` module installed
|
|
19
15
|
// relative to where the studio is located, instead of resolving from where this CLI is
|
|
20
16
|
// running, in order to ensure we're using the same version as the studio would.
|
|
21
|
-
const sanityCliUrl =
|
|
17
|
+
const sanityCliUrl = resolveLocalPackagePath('sanity/cli', rootPath);
|
|
22
18
|
try {
|
|
23
19
|
const { getStudioEnvironmentVariables: getEnvVars } = await doImport(sanityCliUrl.href);
|
|
24
20
|
if (typeof getEnvVars !== 'function') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/util/environment/getStudioEnvironmentVariables.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"sources":["../../../src/util/environment/getStudioEnvironmentVariables.ts"],"sourcesContent":["import {doImport} from '../doImport.js'\nimport {resolveLocalPackagePath} from '../resolveLocalPackage.js'\n\n/**\n * Loads the `getStudioEnvironmentVariables` function from the studio's\n * installed `sanity` package and returns the environment variables.\n *\n * This is used to ensure we're using the same version of environment variable\n * logic as the studio itself.\n *\n * @param rootPath - The root path of the Sanity Studio project\n * @returns Object containing studio environment variables\n * @internal\n */\nexport async function getStudioEnvironmentVariables(\n rootPath: string,\n): Promise<Record<string, string>> {\n // Load `getStudioEnvironmentVariables` from the `sanity/cli` module installed\n // relative to where the studio is located, instead of resolving from where this CLI is\n // running, in order to ensure we're using the same version as the studio would.\n const sanityCliUrl = resolveLocalPackagePath('sanity/cli', rootPath)\n try {\n const {getStudioEnvironmentVariables: getEnvVars} = await doImport(sanityCliUrl.href)\n if (typeof getEnvVars !== 'function') {\n throw new TypeError(\n 'Expected `getStudioEnvironmentVariables` from `sanity/cli` to be a function',\n )\n }\n return getEnvVars(rootPath)\n } catch (err) {\n const message = err instanceof Error ? err.message : String(err)\n throw new Error(\n `Failed to import getStudioEnvironmentVariables from sanity/cli module: ${message}`,\n {cause: err},\n )\n }\n}\n"],"names":["doImport","resolveLocalPackagePath","getStudioEnvironmentVariables","rootPath","sanityCliUrl","getEnvVars","href","TypeError","err","message","Error","String","cause"],"mappings":"AAAA,SAAQA,QAAQ,QAAO,iBAAgB;AACvC,SAAQC,uBAAuB,QAAO,4BAA2B;AAEjE;;;;;;;;;;CAUC,GACD,OAAO,eAAeC,8BACpBC,QAAgB;IAEhB,8EAA8E;IAC9E,uFAAuF;IACvF,gFAAgF;IAChF,MAAMC,eAAeH,wBAAwB,cAAcE;IAC3D,IAAI;QACF,MAAM,EAACD,+BAA+BG,UAAU,EAAC,GAAG,MAAML,SAASI,aAAaE,IAAI;QACpF,IAAI,OAAOD,eAAe,YAAY;YACpC,MAAM,IAAIE,UACR;QAEJ;QACA,OAAOF,WAAWF;IACpB,EAAE,OAAOK,KAAK;QACZ,MAAMC,UAAUD,eAAeE,QAAQF,IAAIC,OAAO,GAAGE,OAAOH;QAC5D,MAAM,IAAIE,MACR,CAAC,uEAAuE,EAAED,SAAS,EACnF;YAACG,OAAOJ;QAAG;IAEf;AACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { dirname, join, normalize, resolve } from 'node:path';
|
|
2
2
|
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
3
|
-
import { moduleResolve } from 'import-meta-resolve';
|
|
4
3
|
import { readPackageJson } from './readPackageJson.js';
|
|
4
|
+
import { resolvePackageUrl } from './resolveLocalPackage.js';
|
|
5
5
|
/**
|
|
6
6
|
* Get the version of a package installed locally.
|
|
7
7
|
*
|
|
@@ -31,7 +31,7 @@ import { readPackageJson } from './readPackageJson.js';
|
|
|
31
31
|
const dir = workDir.startsWith('file://') ? dirname(fileURLToPath(workDir)) : workDir;
|
|
32
32
|
const dirUrl = pathToFileURL(resolve(dir, 'noop.js'));
|
|
33
33
|
try {
|
|
34
|
-
const packageJsonUrl =
|
|
34
|
+
const packageJsonUrl = resolvePackageUrl(`${moduleName}/package.json`, dirUrl);
|
|
35
35
|
return dirname(fileURLToPath(packageJsonUrl));
|
|
36
36
|
} catch (err) {
|
|
37
37
|
if (!isErrPackagePathNotExported(err)) {
|
|
@@ -39,7 +39,7 @@ import { readPackageJson } from './readPackageJson.js';
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
// Fallback: resolve main entry point and derive package root
|
|
42
|
-
const mainUrl =
|
|
42
|
+
const mainUrl = resolvePackageUrl(moduleName, dirUrl);
|
|
43
43
|
const mainPath = fileURLToPath(mainUrl);
|
|
44
44
|
const normalizedName = normalize(moduleName);
|
|
45
45
|
const idx = mainPath.lastIndexOf(normalizedName);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/util/getLocalPackageVersion.ts"],"sourcesContent":["import {dirname, join, normalize, resolve} from 'node:path'\nimport {fileURLToPath, pathToFileURL} from 'node:url'\n\nimport {
|
|
1
|
+
{"version":3,"sources":["../../src/util/getLocalPackageVersion.ts"],"sourcesContent":["import {dirname, join, normalize, resolve} from 'node:path'\nimport {fileURLToPath, pathToFileURL} from 'node:url'\n\nimport {readPackageJson} from './readPackageJson.js'\nimport {resolvePackageUrl} from './resolveLocalPackage.js'\n\n/**\n * Get the version of a package installed locally.\n *\n * @param moduleName - The name of the package in npm.\n * @param workDir - The working directory to resolve the module from. (aka project root)\n * @returns The version of the package installed locally.\n * @internal\n */\nexport async function getLocalPackageVersion(\n moduleName: string,\n workDir: string,\n): Promise<string | null> {\n try {\n const packageDir = getLocalPackageDir(moduleName, workDir)\n return (await readPackageJson(join(packageDir, 'package.json'))).version\n } catch {\n return null\n }\n}\n\n/**\n * Resolve the filesystem directory of a locally installed package using Node\n * module resolution. Works correctly with hoisted packages in monorepos/workspaces,\n * pnpm symlinks, and other non-standard node_modules layouts.\n *\n * @param moduleName - The name of the package in npm.\n * @param workDir - The working directory to resolve the module from. (aka project root)\n * @returns The absolute path to the package directory.\n * @internal\n */\nexport function getLocalPackageDir(moduleName: string, workDir: string): string {\n // Handle import.meta.url being passed instead of a directory path\n const dir = workDir.startsWith('file://') ? dirname(fileURLToPath(workDir)) : workDir\n const dirUrl = pathToFileURL(resolve(dir, 'noop.js'))\n\n try {\n const packageJsonUrl = resolvePackageUrl(`${moduleName}/package.json`, dirUrl)\n return dirname(fileURLToPath(packageJsonUrl))\n } catch (err: unknown) {\n if (!isErrPackagePathNotExported(err)) {\n throw err\n }\n }\n\n // Fallback: resolve main entry point and derive package root\n const mainUrl = resolvePackageUrl(moduleName, dirUrl)\n const mainPath = fileURLToPath(mainUrl)\n const normalizedName = normalize(moduleName)\n const idx = mainPath.lastIndexOf(normalizedName)\n if (idx === -1) {\n throw new Error(`Could not determine package directory for '${moduleName}'`)\n }\n return mainPath.slice(0, idx + normalizedName.length)\n}\n\nfunction isErrPackagePathNotExported(err: unknown): boolean {\n return err instanceof Error && 'code' in err && err.code === 'ERR_PACKAGE_PATH_NOT_EXPORTED'\n}\n"],"names":["dirname","join","normalize","resolve","fileURLToPath","pathToFileURL","readPackageJson","resolvePackageUrl","getLocalPackageVersion","moduleName","workDir","packageDir","getLocalPackageDir","version","dir","startsWith","dirUrl","packageJsonUrl","err","isErrPackagePathNotExported","mainUrl","mainPath","normalizedName","idx","lastIndexOf","Error","slice","length","code"],"mappings":"AAAA,SAAQA,OAAO,EAAEC,IAAI,EAAEC,SAAS,EAAEC,OAAO,QAAO,YAAW;AAC3D,SAAQC,aAAa,EAAEC,aAAa,QAAO,WAAU;AAErD,SAAQC,eAAe,QAAO,uBAAsB;AACpD,SAAQC,iBAAiB,QAAO,2BAA0B;AAE1D;;;;;;;CAOC,GACD,OAAO,eAAeC,uBACpBC,UAAkB,EAClBC,OAAe;IAEf,IAAI;QACF,MAAMC,aAAaC,mBAAmBH,YAAYC;QAClD,OAAO,AAAC,CAAA,MAAMJ,gBAAgBL,KAAKU,YAAY,gBAAe,EAAGE,OAAO;IAC1E,EAAE,OAAM;QACN,OAAO;IACT;AACF;AAEA;;;;;;;;;CASC,GACD,OAAO,SAASD,mBAAmBH,UAAkB,EAAEC,OAAe;IACpE,kEAAkE;IAClE,MAAMI,MAAMJ,QAAQK,UAAU,CAAC,aAAaf,QAAQI,cAAcM,YAAYA;IAC9E,MAAMM,SAASX,cAAcF,QAAQW,KAAK;IAE1C,IAAI;QACF,MAAMG,iBAAiBV,kBAAkB,GAAGE,WAAW,aAAa,CAAC,EAAEO;QACvE,OAAOhB,QAAQI,cAAca;IAC/B,EAAE,OAAOC,KAAc;QACrB,IAAI,CAACC,4BAA4BD,MAAM;YACrC,MAAMA;QACR;IACF;IAEA,6DAA6D;IAC7D,MAAME,UAAUb,kBAAkBE,YAAYO;IAC9C,MAAMK,WAAWjB,cAAcgB;IAC/B,MAAME,iBAAiBpB,UAAUO;IACjC,MAAMc,MAAMF,SAASG,WAAW,CAACF;IACjC,IAAIC,QAAQ,CAAC,GAAG;QACd,MAAM,IAAIE,MAAM,CAAC,2CAA2C,EAAEhB,WAAW,CAAC,CAAC;IAC7E;IACA,OAAOY,SAASK,KAAK,CAAC,GAAGH,MAAMD,eAAeK,MAAM;AACtD;AAEA,SAASR,4BAA4BD,GAAY;IAC/C,OAAOA,eAAeO,SAAS,UAAUP,OAAOA,IAAIU,IAAI,KAAK;AAC/D"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';
|
|
1
2
|
import { resolve } from 'node:path';
|
|
2
3
|
import { pathToFileURL } from 'node:url';
|
|
3
4
|
import { moduleResolve } from 'import-meta-resolve';
|
|
@@ -43,7 +44,7 @@ import { doImport } from './doImport.js';
|
|
|
43
44
|
*/ export function resolveLocalPackagePath(packageName, workDir) {
|
|
44
45
|
const fakeCliConfigUrl = pathToFileURL(resolve(workDir, 'sanity.cli.mjs'));
|
|
45
46
|
try {
|
|
46
|
-
return
|
|
47
|
+
return resolvePackageUrl(packageName, fakeCliConfigUrl);
|
|
47
48
|
} catch (error) {
|
|
48
49
|
throw new Error(`Failed to resolve package "${packageName}" from "${workDir}": ${error instanceof Error ? error.message : String(error)}`, {
|
|
49
50
|
cause: error
|
|
@@ -69,7 +70,7 @@ import { doImport } from './doImport.js';
|
|
|
69
70
|
* @internal
|
|
70
71
|
*/ export async function resolveLocalPackageFrom(packageName, parentUrl) {
|
|
71
72
|
try {
|
|
72
|
-
const packageUrl =
|
|
73
|
+
const packageUrl = resolvePackageUrl(packageName, parentUrl);
|
|
73
74
|
const module = await doImport(packageUrl.href);
|
|
74
75
|
return module;
|
|
75
76
|
} catch (error) {
|
|
@@ -78,5 +79,20 @@ import { doImport } from './doImport.js';
|
|
|
78
79
|
});
|
|
79
80
|
}
|
|
80
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* Resolve a package relative to an arbitrary parent URL.
|
|
84
|
+
*
|
|
85
|
+
* Yarn patches CommonJS resolution to support Plug'n'Play, while
|
|
86
|
+
* `import-meta-resolve` only searches for `node_modules`. Keep using the ESM
|
|
87
|
+
* resolver for standard installs so conditional exports retain their existing
|
|
88
|
+
* `import` semantics.
|
|
89
|
+
*
|
|
90
|
+
* @internal
|
|
91
|
+
*/ export function resolvePackageUrl(packageName, parentUrl) {
|
|
92
|
+
if (process.versions.pnp) {
|
|
93
|
+
return pathToFileURL(createRequire(parentUrl).resolve(packageName));
|
|
94
|
+
}
|
|
95
|
+
return moduleResolve(packageName, parentUrl);
|
|
96
|
+
}
|
|
81
97
|
|
|
82
98
|
//# sourceMappingURL=resolveLocalPackage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/util/resolveLocalPackage.ts"],"sourcesContent":["import {resolve} from 'node:path'\nimport {pathToFileURL} from 'node:url'\n\nimport {moduleResolve} from 'import-meta-resolve'\n\nimport {doImport} from './doImport.js'\n\n/**\n * Resolves and imports a package from the local project's node_modules,\n * relative to the given working directory. This avoids circular dependencies\n * and ensures the correct version of the package is used.\n *\n * @param packageName - The name of the package to resolve (e.g., 'sanity')\n * @param workDir - The working directory to resolve the package from\n * @returns The imported module\n * @throws If the package cannot be resolved or imported\n *\n * @example\n * ```ts\n * const {createSchema} = await resolveLocalPackage('sanity', workDir)\n * ```\n *\n * @internal\n */\nexport async function resolveLocalPackage<T = unknown>(\n packageName: string,\n workDir: string,\n): Promise<T> {\n const packageUrl = resolveLocalPackagePath(packageName, workDir)\n const module = await doImport(packageUrl.href)\n return module as T\n}\n\n/**\n * Resolves the URL of a package from the local project's node_modules,\n * relative to the given working directory, without importing it.\n *\n * @param packageName - The name of the package to resolve (e.g., 'sanity')\n * @param workDir - The working directory to resolve the package from\n * @returns The resolved URL of the package entry point\n * @throws If the package cannot be resolved\n *\n * @example\n * ```ts\n * // Resolve a transitive dependency via its parent package:\n * const sanityUrl = resolveLocalPackagePath('sanity', workDir)\n * const uiUrl = resolveLocalPackagePathFrom('@sanity/ui', sanityUrl)\n * ```\n *\n * @internal\n */\nexport function resolveLocalPackagePath(packageName: string, workDir: string): URL {\n const fakeCliConfigUrl = pathToFileURL(resolve(workDir, 'sanity.cli.mjs'))\n\n try {\n return
|
|
1
|
+
{"version":3,"sources":["../../src/util/resolveLocalPackage.ts"],"sourcesContent":["import {createRequire} from 'node:module'\nimport {resolve} from 'node:path'\nimport {pathToFileURL} from 'node:url'\n\nimport {moduleResolve} from 'import-meta-resolve'\n\nimport {doImport} from './doImport.js'\n\n/**\n * Resolves and imports a package from the local project's node_modules,\n * relative to the given working directory. This avoids circular dependencies\n * and ensures the correct version of the package is used.\n *\n * @param packageName - The name of the package to resolve (e.g., 'sanity')\n * @param workDir - The working directory to resolve the package from\n * @returns The imported module\n * @throws If the package cannot be resolved or imported\n *\n * @example\n * ```ts\n * const {createSchema} = await resolveLocalPackage('sanity', workDir)\n * ```\n *\n * @internal\n */\nexport async function resolveLocalPackage<T = unknown>(\n packageName: string,\n workDir: string,\n): Promise<T> {\n const packageUrl = resolveLocalPackagePath(packageName, workDir)\n const module = await doImport(packageUrl.href)\n return module as T\n}\n\n/**\n * Resolves the URL of a package from the local project's node_modules,\n * relative to the given working directory, without importing it.\n *\n * @param packageName - The name of the package to resolve (e.g., 'sanity')\n * @param workDir - The working directory to resolve the package from\n * @returns The resolved URL of the package entry point\n * @throws If the package cannot be resolved\n *\n * @example\n * ```ts\n * // Resolve a transitive dependency via its parent package:\n * const sanityUrl = resolveLocalPackagePath('sanity', workDir)\n * const uiUrl = resolveLocalPackagePathFrom('@sanity/ui', sanityUrl)\n * ```\n *\n * @internal\n */\nexport function resolveLocalPackagePath(packageName: string, workDir: string): URL {\n const fakeCliConfigUrl = pathToFileURL(resolve(workDir, 'sanity.cli.mjs'))\n\n try {\n return resolvePackageUrl(packageName, fakeCliConfigUrl)\n } catch (error) {\n throw new Error(\n `Failed to resolve package \"${packageName}\" from \"${workDir}\": ${error instanceof Error ? error.message : String(error)}`,\n {cause: error},\n )\n }\n}\n\n/**\n * Resolves and imports a package relative to another resolved module URL.\n * Useful for resolving transitive dependencies that may not be directly\n * accessible from the project root (e.g., in pnpm strict mode).\n *\n * @param packageName - The name of the package to resolve\n * @param parentUrl - The URL of the parent module to resolve from\n * @returns The imported module\n * @throws If the package cannot be resolved or imported\n *\n * @example\n * ```ts\n * const sanityUrl = resolveLocalPackagePath('sanity', workDir)\n * const ui = await resolveLocalPackageFrom<typeof import('@sanity/ui')>('@sanity/ui', sanityUrl)\n * ```\n *\n * @internal\n */\nexport async function resolveLocalPackageFrom<T = unknown>(\n packageName: string,\n parentUrl: URL,\n): Promise<T> {\n try {\n const packageUrl = resolvePackageUrl(packageName, parentUrl)\n const module = await doImport(packageUrl.href)\n return module as T\n } catch (error) {\n throw new Error(\n `Failed to resolve package \"${packageName}\" from \"${parentUrl.href}\": ${error instanceof Error ? error.message : String(error)}`,\n {cause: error},\n )\n }\n}\n\n/**\n * Resolve a package relative to an arbitrary parent URL.\n *\n * Yarn patches CommonJS resolution to support Plug'n'Play, while\n * `import-meta-resolve` only searches for `node_modules`. Keep using the ESM\n * resolver for standard installs so conditional exports retain their existing\n * `import` semantics.\n *\n * @internal\n */\nexport function resolvePackageUrl(packageName: string, parentUrl: URL): URL {\n if (process.versions.pnp) {\n return pathToFileURL(createRequire(parentUrl).resolve(packageName))\n }\n\n return moduleResolve(packageName, parentUrl)\n}\n"],"names":["createRequire","resolve","pathToFileURL","moduleResolve","doImport","resolveLocalPackage","packageName","workDir","packageUrl","resolveLocalPackagePath","module","href","fakeCliConfigUrl","resolvePackageUrl","error","Error","message","String","cause","resolveLocalPackageFrom","parentUrl","process","versions","pnp"],"mappings":"AAAA,SAAQA,aAAa,QAAO,cAAa;AACzC,SAAQC,OAAO,QAAO,YAAW;AACjC,SAAQC,aAAa,QAAO,WAAU;AAEtC,SAAQC,aAAa,QAAO,sBAAqB;AAEjD,SAAQC,QAAQ,QAAO,gBAAe;AAEtC;;;;;;;;;;;;;;;;CAgBC,GACD,OAAO,eAAeC,oBACpBC,WAAmB,EACnBC,OAAe;IAEf,MAAMC,aAAaC,wBAAwBH,aAAaC;IACxD,MAAMG,SAAS,MAAMN,SAASI,WAAWG,IAAI;IAC7C,OAAOD;AACT;AAEA;;;;;;;;;;;;;;;;;CAiBC,GACD,OAAO,SAASD,wBAAwBH,WAAmB,EAAEC,OAAe;IAC1E,MAAMK,mBAAmBV,cAAcD,QAAQM,SAAS;IAExD,IAAI;QACF,OAAOM,kBAAkBP,aAAaM;IACxC,EAAE,OAAOE,OAAO;QACd,MAAM,IAAIC,MACR,CAAC,2BAA2B,EAAET,YAAY,QAAQ,EAAEC,QAAQ,GAAG,EAAEO,iBAAiBC,QAAQD,MAAME,OAAO,GAAGC,OAAOH,QAAQ,EACzH;YAACI,OAAOJ;QAAK;IAEjB;AACF;AAEA;;;;;;;;;;;;;;;;;CAiBC,GACD,OAAO,eAAeK,wBACpBb,WAAmB,EACnBc,SAAc;IAEd,IAAI;QACF,MAAMZ,aAAaK,kBAAkBP,aAAac;QAClD,MAAMV,SAAS,MAAMN,SAASI,WAAWG,IAAI;QAC7C,OAAOD;IACT,EAAE,OAAOI,OAAO;QACd,MAAM,IAAIC,MACR,CAAC,2BAA2B,EAAET,YAAY,QAAQ,EAAEc,UAAUT,IAAI,CAAC,GAAG,EAAEG,iBAAiBC,QAAQD,MAAME,OAAO,GAAGC,OAAOH,QAAQ,EAChI;YAACI,OAAOJ;QAAK;IAEjB;AACF;AAEA;;;;;;;;;CASC,GACD,OAAO,SAASD,kBAAkBP,WAAmB,EAAEc,SAAc;IACnE,IAAIC,QAAQC,QAAQ,CAACC,GAAG,EAAE;QACxB,OAAOrB,cAAcF,cAAcoB,WAAWnB,OAAO,CAACK;IACxD;IAEA,OAAOH,cAAcG,aAAac;AACpC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/cli-core",
|
|
3
|
-
"version": "3.14.
|
|
3
|
+
"version": "3.14.2",
|
|
4
4
|
"description": "Sanity CLI core package",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"@inquirer/core": "^12.0.5",
|
|
123
123
|
"@inquirer/prompts": "^8.7.4",
|
|
124
124
|
"@oclif/core": "^4.11.14",
|
|
125
|
-
"@sanity/client": "^8.
|
|
125
|
+
"@sanity/client": "^8.15.0",
|
|
126
126
|
"boxen": "^8.0.1",
|
|
127
127
|
"empathic": "^2.0.1",
|
|
128
128
|
"get-it": "^9.5.4",
|
|
@@ -135,9 +135,9 @@
|
|
|
135
135
|
"obug": "^3.0.0",
|
|
136
136
|
"ora": "^9.0.0",
|
|
137
137
|
"rxjs": "^7.8.2",
|
|
138
|
-
"vite": "^8.3.
|
|
138
|
+
"vite": "^8.3.6",
|
|
139
139
|
"wrap-ansi": "^9.0.2",
|
|
140
|
-
"zod": "^4.
|
|
140
|
+
"zod": "^4.6.7"
|
|
141
141
|
},
|
|
142
142
|
"devDependencies": {
|
|
143
143
|
"@eslint/compat": "^2.1.0",
|
|
@@ -152,11 +152,11 @@
|
|
|
152
152
|
"@types/node": "^22.20.5",
|
|
153
153
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
154
154
|
"eslint": "^10.7.0",
|
|
155
|
-
"oxc-transform-react": "^0.
|
|
155
|
+
"oxc-transform-react": "^0.156.0",
|
|
156
156
|
"publint": "^0.3.21",
|
|
157
|
-
"sanity": "^6.
|
|
157
|
+
"sanity": "^6.22.0",
|
|
158
158
|
"typescript": "^6.0.3",
|
|
159
|
-
"vitest": "^
|
|
159
|
+
"vitest": "^5.1.0"
|
|
160
160
|
},
|
|
161
161
|
"peerDependencies": {
|
|
162
162
|
"babel-plugin-react-compiler": "*",
|