@sanity/cli 4.10.0-next.43 → 4.10.0-next.44
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/index.d.mts +2 -17
- package/lib/index.d.ts +2 -17
- package/package.json +15 -6
package/lib/index.d.mts
CHANGED
|
@@ -6,6 +6,7 @@ import {DistinctQuestion} from 'inquirer'
|
|
|
6
6
|
import {InlineConfig} from 'vite'
|
|
7
7
|
import {Options} from 'ora'
|
|
8
8
|
import {Ora} from 'ora'
|
|
9
|
+
import {PluginOptions} from 'babel-plugin-react-compiler'
|
|
9
10
|
import {SanityClient} from '@sanity/client'
|
|
10
11
|
import {Separator} from 'inquirer'
|
|
11
12
|
import {TelemetryLogger} from '@sanity/telemetry'
|
|
@@ -412,25 +413,9 @@ export declare interface PackageJson {
|
|
|
412
413
|
declare type PackageManager = 'npm' | 'yarn' | 'pnpm' | 'bun' | 'manual'
|
|
413
414
|
|
|
414
415
|
/**
|
|
415
|
-
* Until these types are on npm: https://github.com/facebook/react/blob/0bc30748730063e561d87a24a4617526fdd38349/compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Options.ts#L39-L122
|
|
416
416
|
* @beta
|
|
417
417
|
*/
|
|
418
|
-
export declare
|
|
419
|
-
/**
|
|
420
|
-
* @see https://react.dev/learn/react-compiler#existing-projects
|
|
421
|
-
*/
|
|
422
|
-
sources?: Array<string> | ((filename: string) => boolean) | null
|
|
423
|
-
/**
|
|
424
|
-
* The minimum major version of React that the compiler should emit code for. If the target is 19
|
|
425
|
-
* or higher, the compiler emits direct imports of React runtime APIs needed by the compiler. On
|
|
426
|
-
* versions prior to 19, an extra runtime package react-compiler-runtime is necessary to provide
|
|
427
|
-
* a userspace approximation of runtime APIs.
|
|
428
|
-
* @see https://react.dev/learn/react-compiler#using-react-compiler-with-react-17-or-18
|
|
429
|
-
*/
|
|
430
|
-
target: '18' | '19'
|
|
431
|
-
panicThreshold?: 'ALL_ERRORS' | 'CRITICAL_ERRORS' | 'NONE'
|
|
432
|
-
compilationMode?: 'infer' | 'syntax' | 'annotation' | 'all'
|
|
433
|
-
}
|
|
418
|
+
export declare type ReactCompilerConfig = Partial<PluginOptions>
|
|
434
419
|
|
|
435
420
|
export declare interface ResolvedCliCommand {
|
|
436
421
|
command: CliCommandDefinition | CliCommandGroupDefinition
|
package/lib/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import {DistinctQuestion} from 'inquirer'
|
|
|
6
6
|
import {InlineConfig} from 'vite'
|
|
7
7
|
import {Options} from 'ora'
|
|
8
8
|
import {Ora} from 'ora'
|
|
9
|
+
import {PluginOptions} from 'babel-plugin-react-compiler'
|
|
9
10
|
import {SanityClient} from '@sanity/client'
|
|
10
11
|
import {Separator} from 'inquirer'
|
|
11
12
|
import {TelemetryLogger} from '@sanity/telemetry'
|
|
@@ -412,25 +413,9 @@ export declare interface PackageJson {
|
|
|
412
413
|
declare type PackageManager = 'npm' | 'yarn' | 'pnpm' | 'bun' | 'manual'
|
|
413
414
|
|
|
414
415
|
/**
|
|
415
|
-
* Until these types are on npm: https://github.com/facebook/react/blob/0bc30748730063e561d87a24a4617526fdd38349/compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Options.ts#L39-L122
|
|
416
416
|
* @beta
|
|
417
417
|
*/
|
|
418
|
-
export declare
|
|
419
|
-
/**
|
|
420
|
-
* @see https://react.dev/learn/react-compiler#existing-projects
|
|
421
|
-
*/
|
|
422
|
-
sources?: Array<string> | ((filename: string) => boolean) | null
|
|
423
|
-
/**
|
|
424
|
-
* The minimum major version of React that the compiler should emit code for. If the target is 19
|
|
425
|
-
* or higher, the compiler emits direct imports of React runtime APIs needed by the compiler. On
|
|
426
|
-
* versions prior to 19, an extra runtime package react-compiler-runtime is necessary to provide
|
|
427
|
-
* a userspace approximation of runtime APIs.
|
|
428
|
-
* @see https://react.dev/learn/react-compiler#using-react-compiler-with-react-17-or-18
|
|
429
|
-
*/
|
|
430
|
-
target: '18' | '19'
|
|
431
|
-
panicThreshold?: 'ALL_ERRORS' | 'CRITICAL_ERRORS' | 'NONE'
|
|
432
|
-
compilationMode?: 'infer' | 'syntax' | 'annotation' | 'all'
|
|
433
|
-
}
|
|
418
|
+
export declare type ReactCompilerConfig = Partial<PluginOptions>
|
|
434
419
|
|
|
435
420
|
export declare interface ResolvedCliCommand {
|
|
436
421
|
command: CliCommandDefinition | CliCommandGroupDefinition
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/cli",
|
|
3
|
-
"version": "4.10.0-next.
|
|
3
|
+
"version": "4.10.0-next.44+ac6c9a0955",
|
|
4
4
|
"description": "Sanity CLI tool for managing Sanity installations, managing plugins, schemas and datasets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity",
|
|
@@ -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.10.0-next.
|
|
63
|
+
"@sanity/codegen": "4.10.0-next.44+ac6c9a0955"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@rexxars/gitconfiglocal": "^3.0.1",
|
|
@@ -81,6 +81,7 @@
|
|
|
81
81
|
"@types/which": "^2.0.1",
|
|
82
82
|
"@vercel/frameworks": "1.6.0",
|
|
83
83
|
"@vercel/fs-detectors": "4.1.3",
|
|
84
|
+
"babel-plugin-react-compiler": "19.1.0-rc.3",
|
|
84
85
|
"boxen": "^4.2.0",
|
|
85
86
|
"clean-stack": "^3.0.1",
|
|
86
87
|
"configstore": "^5.0.1",
|
|
@@ -113,10 +114,18 @@
|
|
|
113
114
|
"vitest": "^3.2.4",
|
|
114
115
|
"which": "^2.0.2",
|
|
115
116
|
"xdg-basedir": "^4.0.0",
|
|
116
|
-
"@repo/eslint-config": "4.10.0-next.
|
|
117
|
-
"@repo/
|
|
118
|
-
"@repo/
|
|
119
|
-
"@sanity/types": "4.10.0-next.
|
|
117
|
+
"@repo/eslint-config": "4.10.0-next.44+ac6c9a0955",
|
|
118
|
+
"@repo/test-config": "4.10.0-next.44+ac6c9a0955",
|
|
119
|
+
"@repo/package.config": "4.10.0-next.44+ac6c9a0955",
|
|
120
|
+
"@sanity/types": "4.10.0-next.44+ac6c9a0955"
|
|
121
|
+
},
|
|
122
|
+
"peerDependencies": {
|
|
123
|
+
"babel-plugin-react-compiler": "*"
|
|
124
|
+
},
|
|
125
|
+
"peerDependenciesMeta": {
|
|
126
|
+
"babel-plugin-react-compiler": {
|
|
127
|
+
"optional": true
|
|
128
|
+
}
|
|
120
129
|
},
|
|
121
130
|
"engines": {
|
|
122
131
|
"node": ">=20.19 <22 || >=22.12"
|