@sanity/codegen 7.0.3 → 8.1.0

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/oclif.config.js DELETED
@@ -1,11 +0,0 @@
1
- export default {
2
- bin: 'sanity',
3
- commands: './dist/commands',
4
- dirname: 'sanity-typegen',
5
- topics: {
6
- typegen: {
7
- description: 'Generate TypeScript types for schema and GROQ',
8
- },
9
- },
10
- topicSeparator: ' ',
11
- }
@@ -1,45 +0,0 @@
1
- {
2
- "commands": {
3
- "typegen:generate": {
4
- "aliases": [],
5
- "args": {},
6
- "description": "Sanity TypeGen\n\nConfiguration:\nThis command can utilize configuration settings defined in a `sanity-typegen.json` file. These settings include:\n\n- \"path\": Specifies a glob pattern to locate your TypeScript or JavaScript files.\n Default: \"./src/**/*.{ts,tsx,js,jsx}\"\n\n- \"schema\": Defines the path to your Sanity schema file. This file should be generated using the `sanity schema extract` command.\n Default: \"schema.json\"\n\n- \"generates\": Indicates the path where the generated TypeScript type definitions will be saved.\n Default: \"./sanity.types.ts\"\n\nThe 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.\n\nNote:\n- 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.",
7
- "examples": [
8
- {
9
- "command": "<%= config.bin %> <%= command.id %>",
10
- "description": "Generate TypeScript type definitions from a Sanity Studio schema extracted using the `sanity schema extract` command."
11
- }
12
- ],
13
- "flags": {
14
- "config-path": {
15
- "description": "[Default: sanity-typegen.json] Specifies the path to the typegen configuration file. This file should be a JSON file that contains settings for the type generation process.",
16
- "name": "config-path",
17
- "hasDynamicHelp": false,
18
- "multiple": false,
19
- "type": "option"
20
- },
21
- "watch": {
22
- "description": "[Default: false] Run the typegen in watch mode",
23
- "name": "watch",
24
- "allowNo": false,
25
- "type": "boolean"
26
- }
27
- },
28
- "hasDynamicHelp": false,
29
- "hiddenAliases": [],
30
- "id": "typegen:generate",
31
- "pluginAlias": "@sanity/codegen",
32
- "pluginName": "@sanity/codegen",
33
- "pluginType": "core",
34
- "strict": true,
35
- "isESM": true,
36
- "relativePath": [
37
- "dist",
38
- "commands",
39
- "typegen",
40
- "generate.js"
41
- ]
42
- }
43
- },
44
- "version": "7.0.3"
45
- }