You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This command is currently in beta and may undergo significant changes. Feedback is welcome!
18
18
19
-
${chalk.bold('Configuration:')}
19
+
${styleText('bold','Configuration:')}
20
20
This command can utilize configuration settings defined in a \`sanity-typegen.json\` file. These settings include:
21
21
22
22
- "path": Specifies a glob pattern to locate your TypeScript or JavaScript files.
@@ -30,7 +30,7 @@ This command can utilize configuration settings defined in a \`sanity-typegen.js
30
30
31
31
The default configuration values listed above are used if not overridden in your \`sanity-typegen.json\` configuration file. To customize the behavior of the type generation, adjust these properties in the configuration file according to your project's needs.
32
32
33
-
${chalk.bold('Note:')}
33
+
${styleText('bold','Note:')}
34
34
- The \`sanity schema extract\` command is a prerequisite for extracting your Sanity Studio schema into a \`schema.json\` file, which is then used by the \`sanity typegen generate\` command to generate type definitions.
35
35
- While this tool is in beta, we encourage you to experiment with these configurations and provide feedback to help improve its functionality and usability.`.trim()
36
36
@@ -109,7 +109,8 @@ export class TypegenGenerateCommand extends SanityCommand<typeof TypegenGenerate
109
109
// we have both legacy and cli config with typegen
110
110
if(config?.typegen&&hasLegacyConfig){
111
111
spin.warn(
112
-
chalk.yellow(
112
+
styleText(
113
+
'yellow',
113
114
`You've specified typegen in your Sanity CLI config, but also have a typegen config.
114
115
115
116
The config from the Sanity CLI config is used.
@@ -128,7 +129,8 @@ export class TypegenGenerateCommand extends SanityCommand<typeof TypegenGenerate
128
129
// we only have legacy typegen config
129
130
if(hasLegacyConfig){
130
131
spin.warn(
131
-
chalk.yellow(
132
+
styleText(
133
+
'yellow',
132
134
`The separate typegen config has been deprecated. Use \`typegen\` in the sanity CLI config instead.
0 commit comments