@sanity/cli 4.7.0-next.6 → 4.7.0-next.64

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/lib/cli.d.ts CHANGED
@@ -1,9 +1,27 @@
1
+ declare interface PackageJson {
2
+ name: string
3
+ version: string
4
+ scripts?: Record<string, string>
5
+ description?: string
6
+ author?: string
7
+ license?: string
8
+ private?: boolean
9
+ dependencies?: Record<string, string>
10
+ devDependencies?: Record<string, string>
11
+ peerDependencies?: Record<string, string>
12
+ repository?: {
13
+ type: string
14
+ url: string
15
+ }
16
+ engines?: Record<string, string>
17
+ }
18
+
1
19
  export declare function runCli(
2
20
  cliRoot: string,
3
21
  {
4
- cliVersion,
22
+ cliPkg,
5
23
  }: {
6
- cliVersion: string
24
+ cliPkg: PackageJson
7
25
  },
8
26
  ): Promise<void>
9
27
 
package/lib/cli.js CHANGED
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: !0 });
3
3
  require("node:os");
4
4
  require("chalk");
5
5
  var cli = require("./_chunks-cjs/cli.js");
6
+ require("semver");
6
7
  require("./_chunks-cjs/getCliConfig.js");
7
8
  require("./_chunks-cjs/loadEnv.js");
8
9
  exports.runCli = cli.runCli;
package/lib/cli.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
1
+ {"version":3,"file":"cli.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
package/lib/index.d.mts CHANGED
@@ -11,11 +11,17 @@ import {Separator} from 'inquirer'
11
11
  import {TelemetryLogger} from '@sanity/telemetry'
12
12
 
13
13
  declare interface AppConfig {
14
+ /**
15
+ * The ID of your Sanity organization
16
+ */
14
17
  organizationId: string
15
18
  /**
16
- * Defaults to './src/App'
19
+ * The entrypoint for your Sanity app. Defaults to './src/App'.
17
20
  */
18
21
  entry?: string
22
+ /**
23
+ * The ID of your Sanity app. Generated when deploying your app for the first time; check the output of `sanity deploy` for this.
24
+ */
19
25
  id?: string
20
26
  }
21
27
 
@@ -377,6 +383,7 @@ export declare interface PackageJson {
377
383
  type: string
378
384
  url: string
379
385
  }
386
+ engines?: Record<string, string>
380
387
  }
381
388
 
382
389
  declare type PackageManager = 'npm' | 'yarn' | 'pnpm' | 'bun' | 'manual'
package/lib/index.d.ts CHANGED
@@ -11,11 +11,17 @@ import {Separator} from 'inquirer'
11
11
  import {TelemetryLogger} from '@sanity/telemetry'
12
12
 
13
13
  declare interface AppConfig {
14
+ /**
15
+ * The ID of your Sanity organization
16
+ */
14
17
  organizationId: string
15
18
  /**
16
- * Defaults to './src/App'
19
+ * The entrypoint for your Sanity app. Defaults to './src/App'.
17
20
  */
18
21
  entry?: string
22
+ /**
23
+ * The ID of your Sanity app. Generated when deploying your app for the first time; check the output of `sanity deploy` for this.
24
+ */
19
25
  id?: string
20
26
  }
21
27
 
@@ -377,6 +383,7 @@ export declare interface PackageJson {
377
383
  type: string
378
384
  url: string
379
385
  }
386
+ engines?: Record<string, string>
380
387
  }
381
388
 
382
389
  declare type PackageManager = 'npm' | 'yarn' | 'pnpm' | 'bun' | 'manual'
package/lib/run.js CHANGED
@@ -4,7 +4,7 @@ function _interopDefaultCompat(e) {
4
4
  return e && typeof e == "object" && "default" in e ? e : { default: e };
5
5
  }
6
6
  var path__default = /* @__PURE__ */ _interopDefaultCompat(path);
7
- cli.getCliVersion().then((cliVersion) => {
8
- cli.runCli(path__default.default.join(__dirname, ".."), { cliVersion });
7
+ cli.getCliPkg().then((cliPkg) => {
8
+ cli.runCli(path__default.default.join(__dirname, ".."), { cliPkg });
9
9
  });
10
10
  //# sourceMappingURL=run.js.map
package/lib/run.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"run.js","sources":["../src/run.ts"],"sourcesContent":["import path from 'node:path'\n\nimport {runCli} from './cli'\nimport {getCliVersion} from './util/getCliVersion'\n\ngetCliVersion().then((cliVersion) => {\n runCli(path.join(__dirname, '..'), {cliVersion})\n})\n"],"names":["getCliVersion","runCli","path"],"mappings":";;;;;;AAKAA,IAAAA,gBAAgB,KAAK,CAAC,eAAe;AACnCC,MAAAA,OAAOC,cAAAA,QAAK,KAAK,WAAW,IAAI,GAAG,EAAC,YAAW;AACjD,CAAC;"}
1
+ {"version":3,"file":"run.js","sources":["../src/run.ts"],"sourcesContent":["import path from 'node:path'\n\nimport {runCli} from './cli'\nimport {getCliPkg} from './util/getCliVersion'\n\ngetCliPkg().then((cliPkg) => {\n runCli(path.join(__dirname, '..'), {cliPkg})\n})\n"],"names":["getCliPkg","runCli","path"],"mappings":";;;;;;AAKAA,IAAAA,YAAY,KAAK,CAAC,WAAW;AAC3BC,MAAAA,OAAOC,cAAAA,QAAK,KAAK,WAAW,IAAI,GAAG,EAAC,QAAO;AAC7C,CAAC;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/cli",
3
- "version": "4.7.0-next.6+f6809b4b33",
3
+ "version": "4.7.0-next.64+17c4c26ec7",
4
4
  "description": "Sanity CLI tool for managing Sanity installations, managing plugins, schemas and datasets",
5
5
  "keywords": [
6
6
  "sanity",
@@ -47,8 +47,8 @@
47
47
  ],
48
48
  "dependencies": {
49
49
  "@babel/traverse": "^7.28.3",
50
- "@sanity/client": "^7.10.0",
51
- "@sanity/runtime-cli": "^10.3.1",
50
+ "@sanity/client": "^7.11.0",
51
+ "@sanity/runtime-cli": "^10.5.1",
52
52
  "@sanity/telemetry": "^0.8.0",
53
53
  "@sanity/template-validator": "^2.4.3",
54
54
  "chalk": "^4.1.2",
@@ -60,7 +60,7 @@
60
60
  "pkg-dir": "^5.0.0",
61
61
  "prettier": "^3.5.3",
62
62
  "semver": "^7.7.2",
63
- "@sanity/codegen": "4.7.0-next.6+f6809b4b33"
63
+ "@sanity/codegen": "4.7.0-next.64+17c4c26ec7"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@rexxars/gitconfiglocal": "^3.0.1",
@@ -74,7 +74,7 @@
74
74
  "@types/inquirer": "^6.5.0",
75
75
  "@types/lodash": "^4.17.20",
76
76
  "@types/minimist": "^1.2.5",
77
- "@types/node": "^22.17.2",
77
+ "@types/node": "^24.3.0",
78
78
  "@types/semver": "^7.7.0",
79
79
  "@types/semver-compare": "^1.0.3",
80
80
  "@types/tar": "^6.1.13",
@@ -113,10 +113,10 @@
113
113
  "vitest": "^3.2.4",
114
114
  "which": "^2.0.2",
115
115
  "xdg-basedir": "^4.0.0",
116
- "@repo/eslint-config": "4.7.0-next.6+f6809b4b33",
117
- "@repo/test-config": "4.7.0-next.6+f6809b4b33",
118
- "@repo/package.config": "4.7.0-next.6+f6809b4b33",
119
- "@sanity/types": "4.7.0-next.6+f6809b4b33"
116
+ "@repo/eslint-config": "4.7.0-next.64+17c4c26ec7",
117
+ "@repo/test-config": "4.7.0-next.64+17c4c26ec7",
118
+ "@repo/package.config": "4.7.0-next.64+17c4c26ec7",
119
+ "@sanity/types": "4.7.0-next.64+17c4c26ec7"
120
120
  },
121
121
  "engines": {
122
122
  "node": ">=20.19 <22 || >=22.12"