@sanity/cli 4.7.0-next.9 → 4.7.1-next.1

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
@@ -383,6 +383,7 @@ export declare interface PackageJson {
383
383
  type: string
384
384
  url: string
385
385
  }
386
+ engines?: Record<string, string>
386
387
  }
387
388
 
388
389
  declare type PackageManager = 'npm' | 'yarn' | 'pnpm' | 'bun' | 'manual'
package/lib/index.d.ts CHANGED
@@ -383,6 +383,7 @@ export declare interface PackageJson {
383
383
  type: string
384
384
  url: string
385
385
  }
386
+ engines?: Record<string, string>
386
387
  }
387
388
 
388
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.9+4f61f1088c",
3
+ "version": "4.7.1-next.1+b0f0c79715",
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",
@@ -56,11 +56,11 @@
56
56
  "esbuild": "0.25.9",
57
57
  "esbuild-register": "^3.6.0",
58
58
  "get-it": "^8.6.10",
59
- "groq-js": "^1.17.3",
59
+ "groq-js": "^1.18.0",
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.9+4f61f1088c"
63
+ "@sanity/codegen": "4.7.1-next.1+b0f0c79715"
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.9+4f61f1088c",
117
- "@repo/package.config": "4.7.0-next.9+4f61f1088c",
118
- "@sanity/types": "4.7.0-next.9+4f61f1088c",
119
- "@repo/test-config": "4.7.0-next.9+4f61f1088c"
116
+ "@repo/eslint-config": "4.7.1-next.1+b0f0c79715",
117
+ "@repo/package.config": "4.7.1-next.1+b0f0c79715",
118
+ "@sanity/types": "4.7.1-next.1+b0f0c79715",
119
+ "@repo/test-config": "4.7.1-next.1+b0f0c79715"
120
120
  },
121
121
  "engines": {
122
122
  "node": ">=20.19 <22 || >=22.12"