{"_id":"@sanity-codegen/cli","_rev":"35-16d62cd505f80abb7c59680677eb1508","name":"@sanity-codegen/cli","dist-tags":{"alpha":"1.0.0-alpha.45","latest":"1.0.0-alpha.13"},"versions":{"1.0.0-alpha.0":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.0","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"lib/index.js","types":"lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"prepack":"rm -rf lib && npm run build && oclif-dev manifest && oclif-dev readme","postpack":"rm -f oclif.manifest.json","build":"./scripts/build","test":"jest","version":"oclif-dev readme && git add README.md","sort-package-json":"sort-package-json","typecheck":"tsc --noEmit --emitDeclarationOnly false","lint":"eslint --ext .ts,.js ./src"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-help":"^3.2.2","common-tags":"^1.8.0","@sanity-codegen/schema-codegen":"1.0.0-alpha.0"},"devDependencies":{"@oclif/dev-cli":"^1.26.0","@types/common-tags":"^1.8.0","@types/node":"^10.17.56","globby":"^10.0.2","typescript":"^4.2.3"},"engines":{"node":">=10.0.0"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"selfDependencies":["@sanity-codegen/schema-codegen"],"_id":"@sanity-codegen/cli@1.0.0-alpha.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-26hylsNlok3wDcqejQwEqw09bCe478C/bMtDUm/osXXc/oWYa2Lj3ct3Yi1u8msy6DpaO9PmO7udSJaHq4+PCQ==","shasum":"d3ff715d8fa7f8312ba918cfe511ddbd14cd3484","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.0.tgz","fileCount":15,"unpackedSize":18883,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbYNRCRA9TVsSAnZWagAAzjIP/if/ZOf8Lp2/Hrnzo9Dc\nL1A7hIkN20O7WCjUA0LpQi5sk2KKauxC40AqtvYW1TkqDsd1kZta0MFyVovc\nr+bM7BqAt+j4Alox2Le9aUTl/XjkHUjrj6iIMmayeF+wW1pV9FEBlqrNOr18\nocUWCHtvPfN4uMZpwv3tDHeXhhpa27cszywKqOAzRq9CFOi4fj67Q+XYhOI+\nq52MKBbTNLOlLVhYaO8V2UrRaD5DtG/vCTR7i3hk4TP9W+rWZmvMriW75yyI\n3kA+0kC1/hRVRHKwI4gWkZR2sIsS/Hh5BPye+S7CM09vhDnjKtrqUkPdzefu\n2EY6RW7e+LOFYakcUTHWsC6nJGKExmveYHsOb7zihNuzW9s7iOXYLqf+lpPL\n6DcMEAMxqHKV9ib9QF94g4d/qnCCvObL+DUmpw+2L1WpA8Tsj+6rHY7Q72Oo\nIHfKXdwzQVsEk/VKnu9OKQf2AGqhxUMYHNxVR9d/zfUTznEL8CaZGJlOUj6d\nJlBWXdrAXpYNX/Cs/fps8n1NbNLlcHvX7AlQpcEE7d64tIB3HZ9wpLEqAiyC\n0Ze8nQoSvsrpNdzc6qRt5JlcweAfrWTZlBLBUIyprzVa8u/JPxQsOTCMLBTR\nirMQ2tSIZYVYJih9Ynv+82HJtl5sQr/s1D8XGZQqWUAlJrF5Svs95SDhLxON\n/LYY\r\n=HJxx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGNF2oxLsSLJWvBUW3HspQt3nn8k8nMoPPPf9EHv3fPqAiBV2ELBrIKq+8eZD/ZlskEYyaCo9F5Tfv04E1sk2BoRSg=="}]},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.0_1617789776543_0.8317721654630625"},"_hasShrinkwrap":false},"1.0.0-alpha.1":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.1","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"lib/index.js","types":"lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"prepack":"rm -rf lib && npm run build && oclif-dev manifest && oclif-dev readme","postpack":"rm -f oclif.manifest.json","build":"./scripts/build","test":"jest","version":"oclif-dev readme && git add README.md","sort-package-json":"sort-package-json","typecheck":"tsc --noEmit --emitDeclarationOnly false","lint":"eslint --ext .ts,.js ./src"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-help":"^3.2.2","common-tags":"^1.8.0","@sanity-codegen/schema-codegen":"1.0.0-alpha.1"},"devDependencies":{"@oclif/dev-cli":"^1.26.0","@types/common-tags":"^1.8.0","@types/node":"^10.17.56","globby":"^10.0.2","typescript":"^4.2.3"},"engines":{"node":">=10.0.0"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"selfDependencies":["@sanity-codegen/schema-codegen"],"readme":"@sanity-codegen/cli\n====================\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\n<!-- toc -->\n* [Usage](#usage)\n* [Commands](#commands)\n<!-- tocstop -->\n# Usage\n<!-- usage -->\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.0 darwin-x64 node-v14.15.3\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n<!-- usagestop -->\n# Commands\n<!-- commands -->\n* [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n* [`sanity-codegen schema-codegen [SCHEMAPATH]`](#sanity-codegen-schema-codegen-schemapath)\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.2/src/commands/help.ts)_\n\n## `sanity-codegen schema-codegen [SCHEMAPATH]`\n\nloads a sanity schema and generates TypeScript types from it\n\n```\nUSAGE\n  $ sanity-codegen schema-codegen [SCHEMAPATH]\n\nARGUMENTS\n  SCHEMAPATH  Optionally provide the path to your sanity schema entry point. If not\n              provided, the CLI will try to get this value from your sanity.json file.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --babelOptions=babelOptions\n      Optionally provide babel options inline in a JSON blob. This will be\n      passed into the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --babelrcPath=babelrcPath\n      Optionally provide a path to a .babelrc file. This will be passed into\n      the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --cwd=cwd\n      Optionally provide a working directory. All of the sanity schema files\n      must be inside the current working directory. If not, you may get errors\n      like \"Cannot use import statement outside a module\".\n\n  --outputPath=outputPath\n      Optionally provide a destination path to the resulting sanity schema\n      types. The default value is ./schema.d.ts.\n```\n\n_See code: [src/commands/schema-codegen.ts](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.0/src/commands/schema-codegen.ts)_\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.1","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-KvnIl3+FV0BDfujnOIqGPukfZNMwU8up20WXphVZi7Lf7oMlCFd9+0pJ2GyaHwyqRBPRjQLOl6YZAduc4jep0A==","shasum":"b870ac9774c63dc9fa28166478536d90f8ce4f38","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.1.tgz","fileCount":15,"unpackedSize":18895,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgj7RkCRA9TVsSAnZWagAAodkP/jE9BsGx++rBjJcvxwUa\naNrN6RzykQEHJieu0EwvKUXmR0NOXVR5ERqitCqkTugpX8rAfz3pUM5E3ApX\nPEe85000Gy4kGIZsvQHQQGnvG2thX6a3JOA4Ly+/nJ7bATT84O81LNWmoXBB\nqBB3XOU3Cj3b+0G/FDGFnwlEEuOP/aZU1yI3Ir1Q+tniYB34xYwuqr16RvRE\nh9kpTtutDb3RfBXBYJwPv3s+nRWv3O+Eja1/WuEEgyrN5Txit6D/DQ6Q7uhz\n3GWsrAfrZMVsnehDkaf+d0mFNEPskIBqfsZDlgOzMlxu1Hpu6zfggJFT+5R9\nVxqUGmptjfUjUCZsEUpKFC6f4/Aek5+fRKT6+F1g2G23NsW7gfiXOXmZOV/d\nCPcxHnx2eZXXd9g9vMTAx98uYSnpueqCdnQCQvAneXZ3eGS7pxPORfi/OV5w\nFx5UJeBn0z+JZcVZX3mBTs4wrPJjpovCBzDD3Ng1J7wSVjS/x+3zwqg3LLu4\nYEehKfICMsQEG1lhBocxP8ngIYY23QE2piGKm3zjFZl9DT0hsKBElxB2tIpX\n5TbUV2dRYqeId+9VOKH6je97WV8GVCiX7QWsimCz9rt7iDKxlVdahpFzS7/u\n3Q8BUnDlk+Mv1eiKX4jeEhWaWCtRuTd8jKf7thAMzSwZdvhHcbiGT5IcLwvZ\nnKwe\r\n=drC9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFyUvtRNWEFMVPX3N4cQrT1cA5oE3oe2Zc96gDA394GOAiEAqlUELPSBQ92vGHYWgS8NF71qfzw13MteQvHtn3cPTBc="}]},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.1_1620030563858_0.9655055877600895"},"_hasShrinkwrap":false},"1.0.0-alpha.2":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.2","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"lib/index.js","types":"lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"prepack":"rm -rf lib && npm run build && oclif-dev manifest && oclif-dev readme","postpack":"rm -f oclif.manifest.json","build":"./scripts/build","test":"jest","version":"oclif-dev readme && git add README.md","sort-package-json":"sort-package-json","typecheck":"tsc --noEmit --emitDeclarationOnly false","lint":"eslint --ext .ts,.js ./src"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-help":"^3.2.2","common-tags":"^1.8.0","@sanity-codegen/schema-codegen":"1.0.0-alpha.2","@sanity-codegen/groq-codegen":"1.0.0-alpha.2"},"devDependencies":{"@oclif/dev-cli":"^1.26.0","@types/common-tags":"^1.8.0","@types/node":"^10.17.56","globby":"^10.0.2","typescript":"^4.2.3"},"engines":{"node":">=10.0.0"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"selfDependencies":["@sanity-codegen/schema-codegen","@sanity-codegen/groq-codegen"],"readme":"@sanity-codegen/cli\n====================\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\n<!-- toc -->\n* [Usage](#usage)\n* [Commands](#commands)\n<!-- tocstop -->\n# Usage\n<!-- usage -->\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.0 darwin-x64 node-v14.15.3\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n<!-- usagestop -->\n# Commands\n<!-- commands -->\n* [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n* [`sanity-codegen schema-codegen [SCHEMAPATH]`](#sanity-codegen-schema-codegen-schemapath)\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.2/src/commands/help.ts)_\n\n## `sanity-codegen schema-codegen [SCHEMAPATH]`\n\nloads a sanity schema and generates TypeScript types from it\n\n```\nUSAGE\n  $ sanity-codegen schema-codegen [SCHEMAPATH]\n\nARGUMENTS\n  SCHEMAPATH  Optionally provide the path to your sanity schema entry point. If not\n              provided, the CLI will try to get this value from your sanity.json file.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --babelOptions=babelOptions\n      Optionally provide babel options inline in a JSON blob. This will be\n      passed into the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --babelrcPath=babelrcPath\n      Optionally provide a path to a .babelrc file. This will be passed into\n      the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --cwd=cwd\n      Optionally provide a working directory. All of the sanity schema files\n      must be inside the current working directory. If not, you may get errors\n      like \"Cannot use import statement outside a module\".\n\n  --outputPath=outputPath\n      Optionally provide a destination path to the resulting sanity schema\n      types. The default value is ./schema.d.ts.\n```\n\n_See code: [src/commands/schema-codegen.ts](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.0/src/commands/schema-codegen.ts)_\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.2","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-0IngD+kbcaoSDE+PKnLqsq2MPfoYF2EUnwaPZxQFl3BiyapTGyPqR97Ih/1pSdA3wINdrZB48IVB6llfJEoudg==","shasum":"ed455deb29e462290c5cd50d1195c0fdc6fa750b","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.2.tgz","fileCount":17,"unpackedSize":22933,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgl3lACRA9TVsSAnZWagAAeFsP/064XcS1LLUdKrKNexOY\n5IilDesfgES44Vzz/5vOUnFmE2ns1zdRRUmgDX9J9TUM9faaQx+s1uxDXp26\nzmK32PQuLDzlPnfZ1FGVjG69z8ZpK8jhE2VDcbcP1+J25BgfqhzgOgMdMyjT\nAEnRQXlTmIvQvJ5p90xe+D80cQFHalOFpONYNVRNtXE3npnZEaRtCQG/YyHg\nAZgdMy9WcSAIH/KMmSLWivn6Om7cdk2v6fSKL6gFvMYWKM46Mr4O9wQbrkwN\nTrNBj5MEd4/Lj0SqdrsQ2PfKvAgMRkaJnfpkE+wgbXRYqs20mss56fN4oHLB\nWmsMzaVlcjnuyiZE/5eetREAXUk7DGul3di/j00CIL4oI/4+Vcgn+O/TIlKk\nOQAuRlHyiBPMr7pwRAn8joz+EYT7v6efRDbyeziNQX3sjQROQy1Z3QokaYo6\nP+MoP/OrICax+Tp8iyxqq149Kokw8JfAkBwmSg0GDyfw8eS9lgzVtqtUTcrK\nNYPOTBU+F4oD81sOJ9INj6SoA/rJVga+Mv9/F4/vIkPTWjT5C99ycjq72hyc\niT88N3YzrWTPzB26PewFroghdIJ+7CjeLEwyI+NNE50RQLcbpZ2eVivCrm8I\nWUiXZY7txsfyGziEkByy5jNJMn/PwZXC90ktelP+60qmFEzK5ihJ3QgaD1vA\nBsFq\r\n=Z6JX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBKM+sbzo/jo2WwuANsLwxjUOBLS/Muh6n0Ag6SUACCHAiBRRYoGqljpIFEQpPlitL2hrJFmdRwAm24hwM5xTPtKXQ=="}]},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.2_1620539712235_0.4514305077838716"},"_hasShrinkwrap":false},"1.0.0-alpha.3":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.3","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"lib/index.js","types":"lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"prepack":"rm -rf lib && npm run build && oclif-dev manifest && oclif-dev readme","postpack":"rm -f oclif.manifest.json","build":"./scripts/build","test":"jest","version":"oclif-dev readme && git add README.md","sort-package-json":"sort-package-json","typecheck":"tsc --noEmit --emitDeclarationOnly false","lint":"eslint --ext .ts,.js ./src"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-help":"^3.2.2","common-tags":"^1.8.0","@sanity-codegen/schema-codegen":"1.0.0-alpha.3","@sanity-codegen/groq-codegen":"1.0.0-alpha.3"},"devDependencies":{"@oclif/dev-cli":"^1.26.0","@types/common-tags":"^1.8.0","@types/node":"^10.17.56","globby":"^10.0.2","typescript":"^4.2.3"},"engines":{"node":">=10.0.0"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"selfDependencies":["@sanity-codegen/schema-codegen","@sanity-codegen/groq-codegen"],"readme":"@sanity-codegen/cli\n====================\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\n<!-- toc -->\n* [Usage](#usage)\n* [Commands](#commands)\n<!-- tocstop -->\n# Usage\n<!-- usage -->\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.0 darwin-x64 node-v14.15.3\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n<!-- usagestop -->\n# Commands\n<!-- commands -->\n* [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n* [`sanity-codegen schema-codegen [SCHEMAPATH]`](#sanity-codegen-schema-codegen-schemapath)\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.2/src/commands/help.ts)_\n\n## `sanity-codegen schema-codegen [SCHEMAPATH]`\n\nloads a sanity schema and generates TypeScript types from it\n\n```\nUSAGE\n  $ sanity-codegen schema-codegen [SCHEMAPATH]\n\nARGUMENTS\n  SCHEMAPATH  Optionally provide the path to your sanity schema entry point. If not\n              provided, the CLI will try to get this value from your sanity.json file.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --babelOptions=babelOptions\n      Optionally provide babel options inline in a JSON blob. This will be\n      passed into the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --babelrcPath=babelrcPath\n      Optionally provide a path to a .babelrc file. This will be passed into\n      the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --cwd=cwd\n      Optionally provide a working directory. All of the sanity schema files\n      must be inside the current working directory. If not, you may get errors\n      like \"Cannot use import statement outside a module\".\n\n  --outputPath=outputPath\n      Optionally provide a destination path to the resulting sanity schema\n      types. The default value is ./schema.d.ts.\n```\n\n_See code: [src/commands/schema-codegen.ts](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.0/src/commands/schema-codegen.ts)_\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.3","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-FcLzi4YZR77BN+XE0SqIvrFLeFqEUf/wcFBUyPk/B9GXyu363yFjm+APXtc+7x2k3Z0o2Oh/1MzL8siPsGNLkg==","shasum":"bb5263683970b94cf34ee63a9d59993770eb962c","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.3.tgz","fileCount":17,"unpackedSize":22933,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgl3wbCRA9TVsSAnZWagAA36kP/0pupUfK5FwirXWbxmue\n1lM0RHMFCPv/aJzbRrHjYbHeaLyO5zvjKT8Of17NGy5oLXEkpFAY6rbicjoC\nSxDb6ogJYevdype+JG4uduo8but4C0SrPK52lUJsIDKDCE+hw5+E89c7Q0Lh\n28scU/Ee+so+ulP+g50FsHYa9Nu/P+tcYuzkMfya0iAoGVwOazH2hwTRkDvA\nc+23XJIId0vIFmnZiz3MyIyC1eTj6BJsg5Hitw6I3x1DEUNSnxQ434vorTyd\nidTzGZ1/MHGCu/CkwGunoSV1kKiTc0g4XCGUzen6LSyCYfpHjcAn6wVMZvj4\nYPe0rOiLfHDPC/sH9xUnUeSdeo8Jm4wddSLSCpNuKRnNjUxSih+jccJHBgCc\n8YaeGktyNpuQaVWYqgcCfmNwlpySPiIs5kmkmFQaA5VQpVv0p4+WHFSuBMfY\neVEtJZGcW6kaCw2HLBL6nnhgSDMnFGM5qlWQTIVrx+rslz5XzxsxrIVYzyq5\nm432G1v5rNlljkH1IPirK9f2iy25LcXCSf8vpvhuWJt7moFS4ZUrSKzOhGVI\nmXAcqGxZkxkE7fuvaqjkZl6/fpnOjUezlK1pdioxyN8x1QwiOYwEnisvhM0B\n6hq/hP0HfRZDJkdMyE3RQL4SOtyzeNdW0VYwbWB7eASdIELrrPmZbv/uXElX\nstOm\r\n=YnOc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBVWxivTAdHUgoeqmoS+7fvkAKYN+2pTF/RLTuwUECyJAiEAsAFERrh4AUF622/PcDwEx65YRl2+qZmfwaPOZHEiuwA="}]},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.3_1620540443492_0.8773670258970874"},"_hasShrinkwrap":false},"1.0.0-alpha.4":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.4","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"lib/index.js","types":"lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"prepack":"rm -rf lib && npm run build && oclif-dev manifest && oclif-dev readme","postpack":"rm -f oclif.manifest.json","build":"./scripts/build","test":"jest","version":"oclif-dev readme && git add README.md","sort-package-json":"sort-package-json","typecheck":"tsc --noEmit --emitDeclarationOnly false","lint":"eslint --ext .ts,.js ./src"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-help":"^3.2.2","common-tags":"^1.8.0","@sanity-codegen/schema-codegen":"1.0.0-alpha.4","@sanity-codegen/groq-codegen":"1.0.0-alpha.4"},"devDependencies":{"@oclif/dev-cli":"^1.26.0","@types/common-tags":"^1.8.0","@types/node":"^10.17.56","globby":"^10.0.2"},"engines":{"node":">=10.0.0"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"selfDependencies":["@sanity-codegen/schema-codegen","@sanity-codegen/groq-codegen"],"readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  // schemaPath: './path/to/your/schema',\n  /**\n   * Optionally provide a destination path to the resulting sanity schema types.\n   * The default value is `schema-types.d.ts`\n   */\n  // schemaTypesOutputPath: './schema-types.d.ts',\n  /**\n   * Optionally provide a destination path to the resulting sanity schema JSON.\n   * The default value is `schema-def.json`\n   */\n  // schemaJsonOutputPath: './schema-def.json',\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `query-types.d.ts`.\n   */\n  // queryTypesOutputPath: './query-types.d.ts',\n  /**\n   * Optionally provide an input `schema-def.json` file to be used for GROQ\n   * codegen. This is the `schemaJsonOutputPath` by default.\n   */\n  // schemaJsonInputPath: './schema-def.json',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * Mutually exclusive with \\`babelOptions\\`.\n   */\n  // babelrcPath: './.babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   */\n  // babelOptions: {/* ... */},\n  /**\n   * Optionally provide a working directory. All of the sanity schema files must\n   * be inside the current working directory. If not, you may get errors like\n   * \"Cannot use import statement outside a module\".\n   *\n   * Defaults to `process.cwd()`\n   */\n  // cwd: process.cwd(),\n};\n\nexport default config;\n```\n\n<!-- toc -->\n* [@sanity-codegen/cli](#sanity-codegencli)\n* [Usage](#usage)\n* [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.0 darwin-x64 node-v14.15.3\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n* [`sanity-codegen groq-codegen FILENAMES`](#sanity-codegen-groq-codegen-filenames)\n* [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n* [`sanity-codegen schema-codegen [SCHEMAPATH]`](#sanity-codegen-schema-codegen-schemapath)\n\n## `sanity-codegen groq-codegen FILENAMES`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen groq-codegen FILENAMES\n\nARGUMENTS\n  FILENAMES  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --cwd=cwd\n      Optionally provide a working directory. The working directory is used\n      as a root when resolving relative blobs.\n\n  --queryTypesOutputPath=queryTypesOutputPath\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `query-types.d.ts`.\n\n  --schemaJsonInputPath=schemaJsonInputPath\n      Optionally provide an input `schema-def.json` file to be used for GROQ\n      codegen. This is the `schemaJsonOutputPath` by default.\n```\n\n_See code: [lib/commands/groq-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.0/lib/commands/groq-codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.2/src/commands/help.ts)_\n\n## `sanity-codegen schema-codegen [SCHEMAPATH]`\n\nloads a sanity schema and generates TypeScript types from it\n\n```\nUSAGE\n  $ sanity-codegen schema-codegen [SCHEMAPATH]\n\nARGUMENTS\n  SCHEMAPATH  Optionally provide the path to your sanity schema entry point. If not\n              provided, the CLI will try to get this value from your sanity.json file.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --babelOptions=babelOptions\n      Optionally provide babel options inline in a JSON blob. This will be\n      passed into the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --babelrcPath=babelrcPath\n      Optionally provide a path to a .babelrc file. This will be passed into\n      the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --cwd=cwd\n      Optionally provide a working directory. All of the sanity schema files\n      must be inside the current working directory. If not, you may get errors\n      like \"Cannot use import statement outside a module\".\n\n  --schemaJsonOutputPath=schemaJsonOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      JSON. The default value is ./schema-def.json.\n\n  --schemaTypesOutputPath=schemaTypesOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      types. The default value is ./schema-types.d.ts.\n```\n\n_See code: [lib/commands/schema-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.0/lib/commands/schema-codegen.js)_\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.4","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-72tyQMZ52bgLCLNH35e7lxprP3d6XMkVG99ncQAouQJmebBzqfQJHV75uLX0jeCp37GM2RuB4ESjrCzeJ0dmmQ==","shasum":"b85e3b0106822c564ea63c15c1b0863936cace03","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.4.tgz","fileCount":17,"unpackedSize":30626,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9G/vCRA9TVsSAnZWagAAVSAP/1qZMjFfS0Ucn6XC1bmB\nqMrTMF/ZvtqC8am1cWLLUqBzvSDHvOPC6MiWeqGYeCwh49JNxw7cckGxnRsj\nn9d/o2btN0tPL281+pNT3LwBV7L3xuW5fUKjqitIM9/JDspVxBK850CYvDW6\nOeKcGjFdFld/0nqnTzgDNljKTBShI2Xgjm+eH5udZsZd+Bd74MaqdSZe60YY\nxT8qqaBZ7WngJH3mqFS/MLR5EDk6vCeDhAKRW4gG7nEUKEIpuHQJZ4NfAimq\nNkQtOL+9dgnjgpMfJ3UVCNphmewyQD+JMNm8GAp2NxYupjnE5VxguIUWewHs\nz8GpSaIZRqw5AsgvHrsTVR5bevuKzMX/wJTjx29irSCczjsinKWjQqPi0FRX\nw+HLNlMBIbcrY7bhtmGBLdWWgnYMaGBEcsYzc6qAit7exQTyofROGOhbvFuI\nXvDm8noYymv4BERMMgcOO27FpADC553OKymFsOeGnN2hRntLupG1Iiju/xcd\n0BAaVvGf1SALNAsq/SdXEftpz5g6STd3fciMXq4HI4/6Zb1AuXmQ4fsM/kPS\nmXcpLf6emDY2P7iEQFPxbF0uLTdftORdxnE7F3ECBaZTV7p9BzQG/1FHL3Su\nGfl/oZearxXn53R+nTRZMuiSAktWG+FMeGOkfe16G2BD8VxM2YzF8VS96YXv\naDQy\r\n=O20J\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDpu+SJGAB7CyQ5msdvac57bf+WlykUfBJovgxsRLGt5AiEAlHorW9AETvqNsd/HMI4OwfI/fhMZA5f6afidCi+6DMI="}]},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.4_1626632175066_0.0174183818078244"},"_hasShrinkwrap":false},"1.0.0-alpha.5":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.5","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"lib/index.js","types":"lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"prepack":"rm -rf lib && npm run build && oclif-dev manifest && oclif-dev readme","postpack":"rm -f oclif.manifest.json","build":"./scripts/build","test":"jest","version":"oclif-dev readme && git add README.md","sort-package-json":"sort-package-json","typecheck":"tsc --noEmit --emitDeclarationOnly false","lint":"eslint --ext .ts,.js ./src"},"dependencies":{"@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-help":"^3.2.2","common-tags":"^1.8.0","@sanity-codegen/schema-codegen":"1.0.0-alpha.5","@sanity-codegen/groq-codegen":"1.0.0-alpha.5"},"devDependencies":{"@oclif/dev-cli":"^1.26.0","@types/common-tags":"^1.8.0","@types/node":"^10.17.56","globby":"^10.0.2"},"engines":{"node":">=10.0.0"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"selfDependencies":["@sanity-codegen/schema-codegen","@sanity-codegen/groq-codegen"],"readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  // schemaPath: './path/to/your/schema',\n  /**\n   * Optionally provide a destination path to the resulting sanity schema types.\n   * The default value is `schema-types.d.ts`\n   */\n  // schemaTypesOutputPath: './schema-types.d.ts',\n  /**\n   * Optionally provide a destination path to the resulting sanity schema JSON.\n   * The default value is `schema-def.json`\n   */\n  // schemaJsonOutputPath: './schema-def.json',\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `query-types.d.ts`.\n   */\n  // queryTypesOutputPath: './query-types.d.ts',\n  /**\n   * Optionally provide an input `schema-def.json` file to be used for GROQ\n   * codegen. This is the `schemaJsonOutputPath` by default.\n   */\n  // schemaJsonInputPath: './schema-def.json',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * Mutually exclusive with \\`babelOptions\\`.\n   */\n  // babelrcPath: './.babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   */\n  // babelOptions: {/* ... */},\n  /**\n   * Optionally provide a working directory. All of the sanity schema files must\n   * be inside the current working directory. If not, you may get errors like\n   * \"Cannot use import statement outside a module\".\n   *\n   * Defaults to `process.cwd()`\n   */\n  // cwd: process.cwd(),\n};\n\nexport default config;\n```\n\n<!-- toc -->\n* [@sanity-codegen/cli](#sanity-codegencli)\n* [Usage](#usage)\n* [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.0 darwin-x64 node-v14.15.3\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n* [`sanity-codegen groq-codegen FILENAMES`](#sanity-codegen-groq-codegen-filenames)\n* [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n* [`sanity-codegen schema-codegen [SCHEMAPATH]`](#sanity-codegen-schema-codegen-schemapath)\n\n## `sanity-codegen groq-codegen FILENAMES`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen groq-codegen FILENAMES\n\nARGUMENTS\n  FILENAMES  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --cwd=cwd\n      Optionally provide a working directory. The working directory is used\n      as a root when resolving relative blobs.\n\n  --queryTypesOutputPath=queryTypesOutputPath\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `query-types.d.ts`.\n\n  --schemaJsonInputPath=schemaJsonInputPath\n      Optionally provide an input `schema-def.json` file to be used for GROQ\n      codegen. This is the `schemaJsonOutputPath` by default.\n```\n\n_See code: [lib/commands/groq-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.0/lib/commands/groq-codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.2/src/commands/help.ts)_\n\n## `sanity-codegen schema-codegen [SCHEMAPATH]`\n\nloads a sanity schema and generates TypeScript types from it\n\n```\nUSAGE\n  $ sanity-codegen schema-codegen [SCHEMAPATH]\n\nARGUMENTS\n  SCHEMAPATH  Optionally provide the path to your sanity schema entry point. If not\n              provided, the CLI will try to get this value from your sanity.json file.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --babelOptions=babelOptions\n      Optionally provide babel options inline in a JSON blob. This will be\n      passed into the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --babelrcPath=babelrcPath\n      Optionally provide a path to a .babelrc file. This will be passed into\n      the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --cwd=cwd\n      Optionally provide a working directory. All of the sanity schema files\n      must be inside the current working directory. If not, you may get errors\n      like \"Cannot use import statement outside a module\".\n\n  --schemaJsonOutputPath=schemaJsonOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      JSON. The default value is ./schema-def.json.\n\n  --schemaTypesOutputPath=schemaTypesOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      types. The default value is ./schema-types.d.ts.\n```\n\n_See code: [lib/commands/schema-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.0/lib/commands/schema-codegen.js)_\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.5","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-dpSw6bsELWnUfGMZnoLK6yMer/nxP7frgFsKCaHD97DkEuXcOBIgMRxmlYKfmQ2I8rRLMYkdC+NYQqJ1JLTk9A==","shasum":"c17eb25f5b14210f5427a6756b317993a557d721","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.5.tgz","fileCount":17,"unpackedSize":30626,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9HSkCRA9TVsSAnZWagAA3VgP/2CjLCr7j1Cekv24b1YC\n9L7uKhtm33ltjFJvgMEjF1cEMKWzXSz6ffK25w/nx5EZ8U+Wkx+80mp7oF1E\nPy699pYDLGLTm19KswJ0kOKZ+ZWaKuZhKARht26bUZ8LgOlr+3ONzSrGSu5N\nrD3yyM44jcmrBxpn/HhNTPZmggyOr4S0V1FRdSz9fqMxN38K99GtxyzQ03Mn\nqXkwTyfShCUoMdo9+NExmwRAXO8ClZRAwLpZof3TUbWnuvsnFJfVYzo4XHgF\nVMWkf8kKDyg/rkdThdCdEDn+om454odWal3nn767g8uHIEGONfl3ot+bbKkT\nNpcuxb36T+fHMnHodPFHZ7hYED2s+rvAPDAIrD4wmRsVJwECpkfXWkuT7kGg\ndZaPvOg3WimtqGzV/BLPCBQpSKMjRYZol7A6A4IbUnoXUEi4F9E8gESguYT3\nM2lO+4svMWQMBNO2gW3iGQMkBnzeGBnTBKIMn2cxbaJIEjZ6kf5/JoJ3XPKL\nXxhGQntYxMqBH8KgXqZ13GRxpxYHlk4E6uobq/jIiEkasgMQVxycvjZc2w6b\niZJujMUJjC2ojri+msloz69Y+mTDiuk+EkqOhua+ZG/2qbaiKYDAD248gxwC\nPVswBpkqgcyi/NN9iQaRE6KVarA1hy+scyu3uaT/KLnRbCC6QltYV2xWQCcJ\nRZfl\r\n=ugn2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICQB/FQP9F37ld+YfLhtLa9FK95eY4HJdb3KGxYJ3k7oAiEAkHc44189MbXeaPMqQtk/XikXptu6BXA4pvnusw3mNNY="}]},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.5_1626633380638_0.9055786556044381"},"_hasShrinkwrap":false},"1.0.0-alpha.6":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.6","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"lib/index.js","types":"lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"prepack":"rm -rf lib && npm run build && oclif-dev manifest && oclif-dev readme","postpack":"rm -f oclif.manifest.json","build":"./scripts/build","test":"jest","version":"oclif-dev readme && git add README.md","sort-package-json":"sort-package-json","typecheck":"tsc --noEmit --emitDeclarationOnly false","lint":"eslint --ext .ts,.js ./src","clean":"rm -rf node_modules"},"dependencies":{"@babel/core":"^7.14.8","@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-help":"^3.2.2","babel-merge":"^3.0.0","common-tags":"^1.8.0","@sanity-codegen/schema-codegen":"1.0.0-alpha.6","@sanity-codegen/groq-codegen":"1.0.0-alpha.6"},"devDependencies":{"@oclif/dev-cli":"^1.26.0","@types/common-tags":"^1.8.0","@types/node":"^10.17.56","globby":"^10.0.2"},"engines":{"node":">=10.0.0"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"selfDependencies":["@sanity-codegen/schema-codegen","@sanity-codegen/groq-codegen"],"readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  schemaPath: './schema',\n  /**\n   * Specify a glob (powered by [`glob`](https://github.com/isaacs/node-glob)),\n   * a list of globs, or a function that returns a list of paths to specify the\n   * source files you want to generate types from.\n   */\n  groqCodegenInclude: ['./src/**/*.{js,jsx,ts,tsx}'],\n  /**\n   * Specify a glob (powered by [`glob`](https://github.com/isaacs/node-glob)),\n   * a list of globs to specify which source files you want to exclude from type\n   * generation.\n   */\n  groqCodegenExclude: ['**/*.test.{js,jsx,ts,tsx}'],\n  /**\n   * Optionally provide a destination path to the resulting sanity schema types.\n   * The default value is `schema-types.d.ts`\n   */\n  // schemaTypesOutputPath: './schema-types.d.ts',\n  /**\n   * Optionally provide a destination path to the resulting sanity schema JSON.\n   * The default value is `schema-def.json`\n   */\n  // schemaJsonOutputPath: './schema-def.json',\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `query-types.d.ts`.\n   */\n  // queryTypesOutputPath: './query-types.d.ts',\n  /**\n   * Optionally provide an input `schema-def.json` file to be used for GROQ\n   * codegen. This is the `schemaJsonOutputPath` by default.\n   */\n  // schemaJsonInputPath: './schema-def.json',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelrcPath: './babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelOptions: {\n  //   // ...\n  // },\n  /**\n   * Determines from where files are relative to. Defaults to where your\n   * sanity-codegen config was found.\n   */\n  // root: process.cwd(),\n  /**\n   * You can directly provide a normalized instead of using a schema-def.json.\n   * A normalized schema (result of the `schemaNormalizer`)\n   * @see schemaNormalizer\n   */\n  // normalizedSchema: undefined,\n  /**\n   * Optionally provide a function that generates the typescript type identifer\n   * from the sanity type name. Use this function to override the default and\n   * prevent naming collisions.\n   */\n  // generateTypeName: undefined,\n  /**\n   * This option is fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigPath: undefined,\n  /**\n   * This options is also fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigOptions: undefined,\n};\n\nexport default config;\n```\n\n<!-- toc -->\n\n- [@sanity-codegen/cli](#sanity-codegencli)\n- [Usage](#usage)\n- [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.0 darwin-x64 node-v14.15.3\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n\n- [`sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`](#sanity-codegen-groq-codegen-groqcodegeninclude)\n- [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n- [`sanity-codegen schema-codegen [SCHEMAPATH]`](#sanity-codegen-schema-codegen-schemapath)\n\n## `sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen groq-codegen [GROQCODEGENINCLUDE]\n\nARGUMENTS\n  GROQCODEGENINCLUDE  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --groqCodegenExclude=groqCodegenExclude\n      Specify a glob or a list of globs to specify which source files you want\n      to exclude from type generation.\n\n  --queryTypesOutputPath=queryTypesOutputPath\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `query-types.d.ts`.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonInputPath=schemaJsonInputPath\n      Optionally provide an input `schema-def.json` file to be used for GROQ\n      codegen. This is the `schemaJsonOutputPath` by default.\n```\n\n_See code: [lib/commands/groq-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.0/lib/commands/groq-codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.2/src/commands/help.ts)_\n\n## `sanity-codegen schema-codegen [SCHEMAPATH]`\n\nloads a sanity schema and generates TypeScript types from it\n\n```\nUSAGE\n  $ sanity-codegen schema-codegen [SCHEMAPATH]\n\nARGUMENTS\n  SCHEMAPATH  Optionally provide the path to your sanity schema entry point. If not\n              provided, the CLI will try to get this value from your sanity.json file.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --babelOptions=babelOptions\n      Optionally provide babel options inline in a JSON blob. This will be\n      passed into the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --babelrcPath=babelrcPath\n      Optionally provide a path to a .babelrc file. This will be passed into\n      the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonOutputPath=schemaJsonOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      JSON. The default value is ./schema-def.json.\n\n  --schemaTypesOutputPath=schemaTypesOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      types. The default value is ./schema-types.d.ts.\n```\n\n_See code: [lib/commands/schema-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.0/lib/commands/schema-codegen.js)_\n\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.6","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-wGEyv0C6xdA1ArSZgoW3V2vdouDbb5TWuF1FiCBD6t/2qShSGciPowfjHRkzB8wWEh0AX15GkJLWb1YYfDLfdQ==","shasum":"9c358672bdf284bb2248539284e23f2d6d0f2d85","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.6.tgz","fileCount":32,"unpackedSize":39535,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+796CRA9TVsSAnZWagAAFu0P/3JKJTEPGLWMGVZpdXbO\nkmRQpR3QiTDolF+OeqM8A0WbWaRBvG3h3YNro87gxzwHYMRctSrjPU5chpyB\nxixW4cGjUKiM9HK9kuzg4oITYdougHuq3f+srZ6EuOA7bTgBfwqXL2aq+uL5\nCK87HnbmKHL2RNS9g5xVrIkw2K0i2Xol7t3OOewQXUV+/2w4Wy4WXnuCMZPo\naPvKsGqvPMlhupOX+H2hAFN4KA0pHZjEgjP1BdS6mLK6wNmkBkTHNSerPP3g\nqJ8qqhJSpAkHqjPnKLMPa01/EgRMKJ+I/8rBGSmy+UeXaXKNtiSalBqZNX8h\nnSTzS6v8yB68fi5BP5cmTbnZuD6HZPlvlaEeGxgrvMACJuvS5D6mIADyORsd\nb5EpqOi1hKOkptaD6Ox8daNXtXUn0Wi2HEvkk8eZ8dzbOg65OSQV+R2JclKE\nCEhHmZrmz4B9xmB5ZLjN2yOUIfxMvVHCzf8ccZpKmxXl9tNCWHg1K5oOqOhm\n9UsAzFZfjMQS6a+sJKGFVq0oepT4BYMR8DfWTPQQhUfXhSCKeb5STDmy6o8w\n4zv9JDClvTfvJMAl9biBQ45Qj62fOD3ly8D6NmUkOGuFI9GRPUvnworV4NRW\na1VCorAH3pTPAUD8XuCkDJJ14cGsKcIY09yEwZMlmWCVoUKVy7taCnfClTTZ\nK9gS\r\n=XePp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE8/SAQVd6fZoToQAKOTjFTXmNMIQTlo6N+ibVrbqGGQAiEA7sAfj1sTfitNS6EFCMtFm9EZu1TnGwBdsU5+f5q8/0M="}]},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.6_1627111290701_0.759871426353647"},"_hasShrinkwrap":false},"1.0.0-alpha.7":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.7","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"lib/index.js","types":"lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"prepack":"rm -rf lib && npm run build && oclif-dev manifest && oclif-dev readme","postpack":"rm -f oclif.manifest.json","build":"./scripts/build","test":"jest","version":"oclif-dev readme && git add README.md","sort-package-json":"sort-package-json","typecheck":"tsc --noEmit --emitDeclarationOnly false","lint":"eslint --ext .ts,.js ./src","clean":"rm -rf node_modules"},"dependencies":{"@babel/core":"^7.14.8","@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-help":"^3.2.2","babel-merge":"^3.0.0","common-tags":"^1.8.0","@sanity-codegen/schema-codegen":"1.0.0-alpha.7","@sanity-codegen/groq-codegen":"1.0.0-alpha.7"},"devDependencies":{"@oclif/dev-cli":"^1.26.0","@types/common-tags":"^1.8.0","@types/node":"^10.17.56","globby":"^10.0.2"},"engines":{"node":">=10.0.0"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"selfDependencies":["@sanity-codegen/schema-codegen","@sanity-codegen/groq-codegen"],"readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  schemaPath: './schema',\n  /**\n   * Specify a glob (powered by [`glob`](https://github.com/isaacs/node-glob)),\n   * a list of globs, or a function that returns a list of paths to specify the\n   * source files you want to generate types from.\n   */\n  groqCodegenInclude: ['./src/**/*.{js,jsx,ts,tsx}'],\n  /**\n   * Specify a glob (powered by [`glob`](https://github.com/isaacs/node-glob)),\n   * a list of globs to specify which source files you want to exclude from type\n   * generation.\n   */\n  groqCodegenExclude: ['**/*.test.{js,jsx,ts,tsx}'],\n  /**\n   * Optionally provide a destination path to the resulting sanity schema types.\n   * The default value is `schema-types.d.ts`\n   */\n  // schemaTypesOutputPath: './schema-types.d.ts',\n  /**\n   * Optionally provide a destination path to the resulting sanity schema JSON.\n   * The default value is `schema-def.json`\n   */\n  // schemaJsonOutputPath: './schema-def.json',\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `query-types.d.ts`.\n   */\n  // queryTypesOutputPath: './query-types.d.ts',\n  /**\n   * Optionally provide an input `schema-def.json` file to be used for GROQ\n   * codegen. This is the `schemaJsonOutputPath` by default.\n   */\n  // schemaJsonInputPath: './schema-def.json',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelrcPath: './babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelOptions: {\n  //   // ...\n  // },\n  /**\n   * Determines from where files are relative to. Defaults to where your\n   * sanity-codegen config was found.\n   */\n  // root: process.cwd(),\n  /**\n   * You can directly provide a normalized instead of using a schema-def.json.\n   * A normalized schema (result of the `schemaNormalizer`)\n   * @see schemaNormalizer\n   */\n  // normalizedSchema: undefined,\n  /**\n   * Optionally provide a function that generates the typescript type identifer\n   * from the sanity type name. Use this function to override the default and\n   * prevent naming collisions.\n   */\n  // generateTypeName: undefined,\n  /**\n   * This option is fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigPath: undefined,\n  /**\n   * This options is also fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigOptions: undefined,\n};\n\nexport default config;\n```\n\n<!-- toc -->\n\n- [@sanity-codegen/cli](#sanity-codegencli)\n- [Usage](#usage)\n- [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.0 darwin-x64 node-v14.15.3\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n\n- [`sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`](#sanity-codegen-groq-codegen-groqcodegeninclude)\n- [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n- [`sanity-codegen schema-codegen [SCHEMAPATH]`](#sanity-codegen-schema-codegen-schemapath)\n\n## `sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen groq-codegen [GROQCODEGENINCLUDE]\n\nARGUMENTS\n  GROQCODEGENINCLUDE  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --groqCodegenExclude=groqCodegenExclude\n      Specify a glob or a list of globs to specify which source files you want\n      to exclude from type generation.\n\n  --queryTypesOutputPath=queryTypesOutputPath\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `query-types.d.ts`.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonInputPath=schemaJsonInputPath\n      Optionally provide an input `schema-def.json` file to be used for GROQ\n      codegen. This is the `schemaJsonOutputPath` by default.\n```\n\n_See code: [lib/commands/groq-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.0/lib/commands/groq-codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.2/src/commands/help.ts)_\n\n## `sanity-codegen schema-codegen [SCHEMAPATH]`\n\nloads a sanity schema and generates TypeScript types from it\n\n```\nUSAGE\n  $ sanity-codegen schema-codegen [SCHEMAPATH]\n\nARGUMENTS\n  SCHEMAPATH  Optionally provide the path to your sanity schema entry point. If not\n              provided, the CLI will try to get this value from your sanity.json file.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --babelOptions=babelOptions\n      Optionally provide babel options inline in a JSON blob. This will be\n      passed into the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --babelrcPath=babelrcPath\n      Optionally provide a path to a .babelrc file. This will be passed into\n      the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonOutputPath=schemaJsonOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      JSON. The default value is ./schema-def.json.\n\n  --schemaTypesOutputPath=schemaTypesOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      types. The default value is ./schema-types.d.ts.\n```\n\n_See code: [lib/commands/schema-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.0/lib/commands/schema-codegen.js)_\n\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.7","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-n1Uqu5kTfzcEDbUC74Tkd/telMDslBcDnVVVdtGH6jd4RcAF11womtxmHpXFvP5TFNiVSYp4y0kjfVHtjXACtg==","shasum":"f4c48a346a982bf754809ebc54a400fa63223cd6","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.7.tgz","fileCount":32,"unpackedSize":39535,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+8RKCRA9TVsSAnZWagAABSoQAJ8/nQz/hCzJG+RJRD7/\n132Cc28IH0/iw18VTLAArX3hpnfpGl0b7JNWOvHM558t18d2kr+K/5hsOR5k\nYn6il13zbqbAYP2Tr+UN8JNOC0JsfS+NE4piet8PtCXnMRz8ZoQbRWnKnmD5\nL7UWhjn2aEgAED73EWWZgGPpEd74fRH8wQ9R701UtPe++VSaM/AxzlX5jwoW\n4H2TA0mcJdgqoCWxEs+09VNrX4APvEFlrmhAH8c9gf1LtAE1QKaBYzl00aPm\nztANlpgzJIjEaIDji9RgJIBcFE9UQx9edkz3hbcfC+Ory8ZIdZ9l0aSn3dtv\npBOQLRVhJjbYxmB/8qZS0yvO/ppRKa4eYe6dJrb8vTnCBWVS76EuAUiHIve7\n7i/SfoC3RtdgSXHObSRjzJuMtFpxB/eMXIpz79mWWxaOmUGrain1uP4GG1Fg\nl1lt8IDdR+/3b6pblgFN/9pPZ9N5O4xES+yEu3OyVx5Co8SueWPug6POsKNA\nOujvDETxVU5uWmmDvJXZCg/1D90GTA3e/GFaIoGzEhLpzaaSkIAT0OUUJN78\nyE1ynhWVszbHA/upCQDiOf5BZcrOrtywQd/CXjftkzsd2UItsz4NFAbVW72E\nrXMRG9RvQkjCcgECtyUxljX4gTpRYe5NystUMHjSoPn+sdgdzh6OsmQnfkg3\nP3TF\r\n=2CH0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICjh3dtj7bTWD3iCjCYUzMmuNBn3qFPFEHgMlFlBgzr7AiEA1eDreSNokRho5dOi7zO9htE+DPnbKmy1DTp/4WzuBzU="}]},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.7_1627112522049_0.03502169173110525"},"_hasShrinkwrap":false},"1.0.0-alpha.8":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.8","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"lib/index.js","types":"lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"prepack":"rm -rf lib && npm run build && oclif-dev manifest && oclif-dev readme","postpack":"rm -f oclif.manifest.json","build":"./scripts/build","test":"jest","version":"oclif-dev readme && git add README.md","sort-package-json":"sort-package-json","typecheck":"tsc --noEmit --emitDeclarationOnly false","lint":"eslint --ext .ts,.js ./src","clean":"rm -rf node_modules"},"dependencies":{"@babel/core":"^7.14.8","@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-help":"^3.2.2","babel-merge":"^3.0.0","common-tags":"^1.8.0","@sanity-codegen/schema-codegen":"1.0.0-alpha.8","@sanity-codegen/groq-codegen":"1.0.0-alpha.8"},"devDependencies":{"@oclif/dev-cli":"^1.26.0","@types/common-tags":"^1.8.0","@types/node":"^10.17.56","globby":"^10.0.2"},"engines":{"node":">=10.0.0"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"selfDependencies":["@sanity-codegen/schema-codegen","@sanity-codegen/groq-codegen"],"readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  schemaPath: './schema',\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)), a list of globs, or a\n   * function that returns a list of paths to specify the source files you want\n   * to generate types from.\n   *\n   * If `groqCodegenInclude` is provided as a function then `groqCodegenExclude`\n   * will not be used.\n   */\n  groqCodegenInclude: ['./src/**/*.{js,jsx,ts,tsx}'],\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)) or a list of globs to\n   * specify which source files you want to exclude from type generation.\n   */\n  groqCodegenExclude: ['**/*.test.{js,ts,tsx}', '**/node_modules'],\n  /**\n   * Optionally provide a destination path to the resulting sanity schema types.\n   * The default value is `schema-types.d.ts`\n   */\n  // schemaTypesOutputPath: './schema-types.d.ts',\n  /**\n   * Optionally provide a destination path to the resulting sanity schema JSON.\n   * The default value is `schema-def.json`\n   */\n  // schemaJsonOutputPath: './schema-def.json',\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `query-types.d.ts`.\n   */\n  // queryTypesOutputPath: './query-types.d.ts',\n  /**\n   * Optionally provide an input `schema-def.json` file to be used for GROQ\n   * codegen. This is the `schemaJsonOutputPath` by default.\n   */\n  // schemaJsonInputPath: './schema-def.json',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelrcPath: './babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelOptions: {\n  //   // ...\n  // },\n  /**\n   * Determines from where files are relative to. Defaults to where your\n   * sanity-codegen config was found.\n   */\n  // root: process.cwd(),\n  /**\n   * You can directly provide a normalized instead of using a schema-def.json.\n   * A normalized schema (result of the `schemaNormalizer`)\n   * @see schemaNormalizer\n   */\n  // normalizedSchema: undefined,\n  /**\n   * Optionally provide a function that generates the typescript type identifer\n   * from the sanity type name. Use this function to override the default and\n   * prevent naming collisions.\n   */\n  // generateTypeName: undefined,\n  /**\n   * This option is fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigPath: undefined,\n  /**\n   * This options is also fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigOptions: undefined,\n};\n\nexport default config;\n```\n\n<!-- toc -->\n\n- [@sanity-codegen/cli](#sanity-codegencli)\n- [Usage](#usage)\n- [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.0 darwin-x64 node-v14.15.3\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n\n- [`sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`](#sanity-codegen-groq-codegen-groqcodegeninclude)\n- [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n- [`sanity-codegen schema-codegen [SCHEMAPATH]`](#sanity-codegen-schema-codegen-schemapath)\n\n## `sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen groq-codegen [GROQCODEGENINCLUDE]\n\nARGUMENTS\n  GROQCODEGENINCLUDE  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --groqCodegenExclude=groqCodegenExclude\n      Specify a glob or a list of globs to specify which source files you want\n      to exclude from type generation.\n\n  --queryTypesOutputPath=queryTypesOutputPath\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `query-types.d.ts`.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonInputPath=schemaJsonInputPath\n      Optionally provide an input `schema-def.json` file to be used for GROQ\n      codegen. This is the `schemaJsonOutputPath` by default.\n```\n\n_See code: [lib/commands/groq-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.0/lib/commands/groq-codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.2/src/commands/help.ts)_\n\n## `sanity-codegen schema-codegen [SCHEMAPATH]`\n\nloads a sanity schema and generates TypeScript types from it\n\n```\nUSAGE\n  $ sanity-codegen schema-codegen [SCHEMAPATH]\n\nARGUMENTS\n  SCHEMAPATH  Optionally provide the path to your sanity schema entry point. If not\n              provided, the CLI will try to get this value from your sanity.json file.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --babelOptions=babelOptions\n      Optionally provide babel options inline in a JSON blob. This will be\n      passed into the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --babelrcPath=babelrcPath\n      Optionally provide a path to a .babelrc file. This will be passed into\n      the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonOutputPath=schemaJsonOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      JSON. The default value is ./schema-def.json.\n\n  --schemaTypesOutputPath=schemaTypesOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      types. The default value is ./schema-types.d.ts.\n```\n\n_See code: [lib/commands/schema-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.0/lib/commands/schema-codegen.js)_\n\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.8","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-G4xE+RnUKavB+64+n+Nry1f7kr+p06uExcI4mc117Y1JjyVURX6SgARgyhaDEDSQ2cqzPIX0kCLI85dbJkyBTg==","shasum":"d76d78dfc58f1cedc766fac4388fcf7a0af24ae8","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.8.tgz","fileCount":32,"unpackedSize":39676,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg/C8+CRA9TVsSAnZWagAAcJoP/RZBDwrYgUKWm0ZXsvTF\ncqE7sROFBDPzeV0Y7/jQ6ciMxRDl0v0MfDqmJMKjUx312UP+uLMPQzkMCIwH\npi71P+W8Yd659sYrBHUbd+ARuRyuYE14LOAgNHd6DJhhVN2hN6S33otVlwE2\n31T/LOuXru9Jad5JDt783pu2VBB2gGnsjUiYLvAtgDbwR2fp5y7KdoqHpSX2\neCfq0a3wualoOzbFgieoOJl8Q3bTWMkgEmObbmbVGpJWvIHznhsEoG3Kd2wy\nAwB/XToZdAVdF7rXwNYrzyHdtEIR5zSjB6JFfAbsVLlfjW0XMfOC5xWRiS2V\n4393o2ZTWjeyToZj6pUtpYVje2k9OSEyuF4hmE+M3FBEVkmS7mYuN9oQgbG7\nG8zOiGTyuCYdGEE2AiXytsGojwHa56d9DH0oSrf6jChfjLXyT+R7ZNw3XI9J\nCridHdsrwc+D/Svv20yHsrw3aJ9sQ05lazCqiDjJSkJ1OwLQp1pW8LeQM3Qf\nKB4wLlmOEdTpv4mHHp68v3e+hqfhIWguRNsFv3DcwuvObpZuX7/TzYWOB6iG\nYN6qaX1AwcwsuK4E2vtaNbFaWi51mx7vSlWVsHH6KcLxvzEuPwSZ6N9Cb5S1\nEeU+tkjenBAgCEyuDBi5Dq9aXuu3B8zSVjz2Plm+bbaC8P/nZspla5xra9LI\nxYrV\r\n=drco\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOEtIDictfGflEQbcsKgtFTKwtLi7LtmTm+HMCoJCgnAIhAK6gIW/QnUmYD1GHHseVzUVSNRiWLw0ljYwEZwBxzd2L"}]},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.8_1627139901881_0.23211624765859074"},"_hasShrinkwrap":false},"1.0.0-alpha.9":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.9","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"lib/index.js","types":"lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"prepack":"rm -rf lib && npm run build && oclif-dev manifest && oclif-dev readme","postpack":"rm -f oclif.manifest.json","build":"./scripts/build","test":"jest","version":"oclif-dev readme && git add README.md","sort-package-json":"sort-package-json","typecheck":"tsc --noEmit --emitDeclarationOnly false","lint":"eslint --ext .ts,.js ./src","clean":"rm -rf node_modules"},"dependencies":{"@babel/core":"^7.14.8","@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-help":"^3.2.2","babel-merge":"^3.0.0","common-tags":"^1.8.0","@sanity-codegen/schema-codegen":"1.0.0-alpha.9","@sanity-codegen/groq-codegen":"1.0.0-alpha.9"},"devDependencies":{"@oclif/dev-cli":"^1.26.0","@types/common-tags":"^1.8.0","@types/node":"^10.17.56","globby":"^10.0.2"},"engines":{"node":">=10.0.0"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"selfDependencies":["@sanity-codegen/schema-codegen","@sanity-codegen/groq-codegen"],"readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  schemaPath: './schema',\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)), a list of globs, or a\n   * function that returns a list of paths to specify the source files you want\n   * to generate types from.\n   *\n   * If `groqCodegenInclude` is provided as a function then `groqCodegenExclude`\n   * will not be used.\n   */\n  groqCodegenInclude: ['./src/**/*.{js,jsx,ts,tsx}'],\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)) or a list of globs to\n   * specify which source files you want to exclude from type generation.\n   */\n  groqCodegenExclude: ['**/*.test.{js,ts,tsx}', '**/node_modules'],\n  /**\n   * Optionally provide a destination path to the resulting sanity schema types.\n   * The default value is `schema-types.d.ts`\n   */\n  // schemaTypesOutputPath: './schema-types.d.ts',\n  /**\n   * Optionally provide a destination path to the resulting sanity schema JSON.\n   * The default value is `schema-def.json`\n   */\n  // schemaJsonOutputPath: './schema-def.json',\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `query-types.d.ts`.\n   */\n  // queryTypesOutputPath: './query-types.d.ts',\n  /**\n   * Optionally provide an input `schema-def.json` file to be used for GROQ\n   * codegen. This is the `schemaJsonOutputPath` by default.\n   */\n  // schemaJsonInputPath: './schema-def.json',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelrcPath: './babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelOptions: {\n  //   // ...\n  // },\n  /**\n   * Determines from where files are relative to. Defaults to where your\n   * sanity-codegen config was found.\n   */\n  // root: process.cwd(),\n  /**\n   * You can directly provide a normalized instead of using a schema-def.json.\n   * A normalized schema (result of the `schemaNormalizer`)\n   * @see schemaNormalizer\n   */\n  // normalizedSchema: undefined,\n  /**\n   * Optionally provide a function that generates the typescript type identifer\n   * from the sanity type name. Use this function to override the default and\n   * prevent naming collisions.\n   */\n  // generateTypeName: undefined,\n  /**\n   * This option is fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigPath: undefined,\n  /**\n   * This options is also fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigOptions: undefined,\n};\n\nexport default config;\n```\n\n<!-- toc -->\n\n- [@sanity-codegen/cli](#sanity-codegencli)\n- [Usage](#usage)\n- [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.0 darwin-x64 node-v14.15.3\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n\n- [`sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`](#sanity-codegen-groq-codegen-groqcodegeninclude)\n- [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n- [`sanity-codegen schema-codegen [SCHEMAPATH]`](#sanity-codegen-schema-codegen-schemapath)\n\n## `sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen groq-codegen [GROQCODEGENINCLUDE]\n\nARGUMENTS\n  GROQCODEGENINCLUDE  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --groqCodegenExclude=groqCodegenExclude\n      Specify a glob or a list of globs to specify which source files you want\n      to exclude from type generation.\n\n  --queryTypesOutputPath=queryTypesOutputPath\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `query-types.d.ts`.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonInputPath=schemaJsonInputPath\n      Optionally provide an input `schema-def.json` file to be used for GROQ\n      codegen. This is the `schemaJsonOutputPath` by default.\n```\n\n_See code: [lib/commands/groq-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.0/lib/commands/groq-codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.2/src/commands/help.ts)_\n\n## `sanity-codegen schema-codegen [SCHEMAPATH]`\n\nloads a sanity schema and generates TypeScript types from it\n\n```\nUSAGE\n  $ sanity-codegen schema-codegen [SCHEMAPATH]\n\nARGUMENTS\n  SCHEMAPATH  Optionally provide the path to your sanity schema entry point. If not\n              provided, the CLI will try to get this value from your sanity.json file.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --babelOptions=babelOptions\n      Optionally provide babel options inline in a JSON blob. This will be\n      passed into the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --babelrcPath=babelrcPath\n      Optionally provide a path to a .babelrc file. This will be passed into\n      the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonOutputPath=schemaJsonOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      JSON. The default value is ./schema-def.json.\n\n  --schemaTypesOutputPath=schemaTypesOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      types. The default value is ./schema-types.d.ts.\n```\n\n_See code: [lib/commands/schema-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.0/lib/commands/schema-codegen.js)_\n\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.9","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-ZR7tXtPKzJsFwbeza84K5WehWnaUTjiH9UWuuOKOzcC3IrynV4n7Na/yj9RSfB3ZIFjZmB3j6B6Meqm4ru6brA==","shasum":"1b933391fb05b700776fd9d43cdbc3b3eef38092","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.9.tgz","fileCount":36,"unpackedSize":42629,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhBDUJCRA9TVsSAnZWagAATA8P/itEx4PQemE44fL5ONyF\nBX1yo2NlzfkTX72lMo4J2KD6lUtqGmoilCCIRgBoG2XDvEiWhMWytsODdzNd\nvgRr1b7sL9y0R6axaPR9rSCHYDzJvw8Il7CcLc4i+es5gRf6SlJshgWdNemA\nf4bDnU0le99aR+vYP0uG7pA1reKN0iVfzW9AmdwZfZnu7aAEuTA4xjrpz7WP\nHcIJUC2qYh/8NjBF2ZUwgihtzPSuDrAoM4SHA+5V0ur/u8wz7TUC2XqXewcD\ngJDONXg/40FEIi8niud3J23Pd+W2x/N7IA1zEDtuCzPsDW544dvXi5HsAkoa\nyLR0mdY1xD5mBx0ZQC5tO7/ij1Ey71Ir3LARv6zxHvGrEbPjqjBBxP5l++XD\njz35CtPmIorWXvRwLIoqNIk6KfvlCqe6gqsie6PnXEDWyCLGwA3ikgkw8Erx\nRxA3Sj9zS14q8UQRTjqFoW4Q8OH5hTmA6CFI5N+0tjn75IHgv4HbDavWfy7p\nv8DDITYwj8w6XUaGL1ysyqhD5o4881eyVk6porTC4eYntoJOQ+vPj477vbBt\nfm4eohiH6jtLrDa+XIFOCvLhcFw126P7Zlh7p1tN+RVzTu/xWR62v1+i94yw\nafBC0WF51ObZX1yDXM7m0s8dRb/Io7CddVTLWSP2vmdaTA5uor9xvAppmDLk\nlri4\r\n=KcF2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICHEnaNWgyIoUbQvmIYEAcEeJrPFNE6AlCy6GfvAqJjVAiEAtGSpZyhmKYJhRomu2nucfMQ/rTwtK2g9GCrqSyDwbRU="}]},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.9_1627665673412_0.3900468894473572"},"_hasShrinkwrap":false},"1.0.0-alpha.10":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.10","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"lib/index.js","types":"lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"prepack":"rm -rf lib && npm run build && oclif-dev manifest && oclif-dev readme","postpack":"rm -f oclif.manifest.json","build":"./scripts/build","test":"jest","version":"oclif-dev readme && git add README.md","sort-package-json":"sort-package-json","typecheck":"tsc --noEmit --emitDeclarationOnly false","lint":"eslint --ext .ts,.js ./src","clean":"rm -rf node_modules"},"dependencies":{"@babel/core":"^7.14.8","@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-help":"^3.2.2","babel-merge":"^3.0.0","common-tags":"^1.8.0","@sanity-codegen/schema-codegen":"1.0.0-alpha.10","@sanity-codegen/groq-codegen":"1.0.0-alpha.10"},"devDependencies":{"@oclif/dev-cli":"^1.26.0","@types/common-tags":"^1.8.0","@types/node":"^10.17.56","globby":"^10.0.2"},"engines":{"node":">=10.0.0"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"selfDependencies":["@sanity-codegen/schema-codegen","@sanity-codegen/groq-codegen"],"readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  schemaPath: './schema',\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)), a list of globs, or a\n   * function that returns a list of paths to specify the source files you want\n   * to generate types from.\n   *\n   * If `groqCodegenInclude` is provided as a function then `groqCodegenExclude`\n   * will not be used.\n   */\n  groqCodegenInclude: ['./src/**/*.{js,jsx,ts,tsx}'],\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)) or a list of globs to\n   * specify which source files you want to exclude from type generation.\n   */\n  groqCodegenExclude: ['**/*.test.{js,ts,tsx}', '**/node_modules'],\n  /**\n   * Optionally provide a destination path to the resulting sanity schema types.\n   * The default value is `schema-types.d.ts`\n   */\n  // schemaTypesOutputPath: './schema-types.d.ts',\n  /**\n   * Optionally provide a destination path to the resulting sanity schema JSON.\n   * The default value is `schema-def.json`\n   */\n  // schemaJsonOutputPath: './schema-def.json',\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `query-types.d.ts`.\n   */\n  // queryTypesOutputPath: './query-types.d.ts',\n  /**\n   * Optionally provide an input `schema-def.json` file to be used for GROQ\n   * codegen. This is the `schemaJsonOutputPath` by default.\n   */\n  // schemaJsonInputPath: './schema-def.json',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelrcPath: './babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelOptions: {\n  //   // ...\n  // },\n  /**\n   * Determines from where files are relative to. Defaults to where your\n   * sanity-codegen config was found.\n   */\n  // root: process.cwd(),\n  /**\n   * You can directly provide a normalized instead of using a schema-def.json.\n   * A normalized schema (result of the `schemaNormalizer`)\n   * @see schemaNormalizer\n   */\n  // normalizedSchema: undefined,\n  /**\n   * Optionally provide a function that generates the typescript type identifer\n   * from the sanity type name. Use this function to override the default and\n   * prevent naming collisions.\n   */\n  // generateTypeName: undefined,\n  /**\n   * This option is fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigPath: undefined,\n  /**\n   * This options is also fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigOptions: undefined,\n};\n\nexport default config;\n```\n\n<!-- toc -->\n\n- [@sanity-codegen/cli](#sanity-codegencli)\n- [Usage](#usage)\n- [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.0 darwin-x64 node-v14.15.3\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n\n- [`sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`](#sanity-codegen-groq-codegen-groqcodegeninclude)\n- [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n- [`sanity-codegen schema-codegen [SCHEMAPATH]`](#sanity-codegen-schema-codegen-schemapath)\n\n## `sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen groq-codegen [GROQCODEGENINCLUDE]\n\nARGUMENTS\n  GROQCODEGENINCLUDE  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --groqCodegenExclude=groqCodegenExclude\n      Specify a glob or a list of globs to specify which source files you want\n      to exclude from type generation.\n\n  --queryTypesOutputPath=queryTypesOutputPath\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `query-types.d.ts`.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonInputPath=schemaJsonInputPath\n      Optionally provide an input `schema-def.json` file to be used for GROQ\n      codegen. This is the `schemaJsonOutputPath` by default.\n```\n\n_See code: [lib/commands/groq-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.0/lib/commands/groq-codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.2/src/commands/help.ts)_\n\n## `sanity-codegen schema-codegen [SCHEMAPATH]`\n\nloads a sanity schema and generates TypeScript types from it\n\n```\nUSAGE\n  $ sanity-codegen schema-codegen [SCHEMAPATH]\n\nARGUMENTS\n  SCHEMAPATH  Optionally provide the path to your sanity schema entry point. If not\n              provided, the CLI will try to get this value from your sanity.json file.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --babelOptions=babelOptions\n      Optionally provide babel options inline in a JSON blob. This will be\n      passed into the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --babelrcPath=babelrcPath\n      Optionally provide a path to a .babelrc file. This will be passed into\n      the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonOutputPath=schemaJsonOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      JSON. The default value is ./schema-def.json.\n\n  --schemaTypesOutputPath=schemaTypesOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      types. The default value is ./schema-types.d.ts.\n```\n\n_See code: [lib/commands/schema-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.0/lib/commands/schema-codegen.js)_\n\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.10","_nodeVersion":"14.17.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-jmVyasuSG0uit09oc6B5XSjwK+/MmrTe9MObpknjKepOiOyHzPadeMUXdw/ibMuZ8pf+5qnVYn368jSLpfRUrA==","shasum":"cb7c9e717be3aacf1f8a5f031c66710cf3b032a7","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.10.tgz","fileCount":36,"unpackedSize":42636,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhES9KCRA9TVsSAnZWagAA0aUP/AowRtJvj/58LhgcUhrc\n5DQsYN3JKmxt+5eDRzkMP3Zk08ycSwH+8v1D8vtBBxnLVi0eVdIRYzUt6Arj\nRwJOjqMvOzf9g9zPGzilsLG+b3Buv0/EP7sq3a38CxTxEhLKbN9hAydXl06m\nveElyRJHms8xOFZXLV3ur93hriLUIydpE+9fa5MbiYMJvnq0E6sRMZueAnK+\n7ZziscOAZoCjJMAbRM+t91B0P7LxcYQTP9eUEa1TEyrZY1w/zQT6x4SKD033\nd8VnhWoT++FcYF1BzLOxik731ppHAPmXKoB/7CkXt3P5yBu50T/cQRQqjZkm\nYHIhAFhFR/E0+/vgCzMHP2T7kGhf+xWrWg3ZyHr9o032c9fJnd3U7j+md9JO\npesqX1NolR9UrH7JAU54Odjiey6/cYDyfxVjDxswEtsRTnAn2cFDHUJYVZrn\nACRiNQdLagK87ws8RxmZchFRabQ1pE7XcTYtAY5OzxANH0ZA+lvItU4ntr3d\nW2ebm3IgboGvfZ6fQ1zH7JQjmynCHe2v1pyCJewWGuUlbYPhvEqDF82QzN1k\nYJ+prOBB9sqaoM4NjhDQO9P+HvdVpeRmHaammgrxEjZ0zkQrDdjo1pEQ+/4w\n4WAeZuEbWQh7SeuiKvhXkFgRemCPY9vmp1srtrqbXcybHds3rPgN0hpIZ4lA\naW6I\r\n=Xsxn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGZEurpo4PGEcVuIXduOSvLJefHG05g1eHXLgT/R0u/aAiEA6Nz81TGio31o4nVDm0VSiyUsnE09Av3ej4WSby/EceQ="}]},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.10_1628516170426_0.7443612792886118"},"_hasShrinkwrap":false},"1.0.0-alpha.11":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.11","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"lib/index.js","types":"lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"prepack":"rm -rf lib && npm run build && oclif-dev manifest && oclif-dev readme","postpack":"rm -f oclif.manifest.json","build":"./scripts/build","test":"jest","version":"oclif-dev readme && git add README.md","sort-package-json":"sort-package-json","typecheck":"tsc --noEmit --emitDeclarationOnly false","lint":"eslint --ext .ts,.js ./src","clean":"rm -rf node_modules"},"dependencies":{"@babel/core":"^7.14.8","@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-help":"^3.2.2","babel-merge":"^3.0.0","common-tags":"^1.8.0","@sanity-codegen/schema-codegen":"1.0.0-alpha.11","@sanity-codegen/groq-codegen":"1.0.0-alpha.11"},"devDependencies":{"@oclif/dev-cli":"^1.26.0","@types/common-tags":"^1.8.0","@types/node":"^10.17.56","globby":"^10.0.2"},"engines":{"node":">=10.0.0"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"selfDependencies":["@sanity-codegen/schema-codegen","@sanity-codegen/groq-codegen"],"readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  schemaPath: './schema',\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)), a list of globs, or a\n   * function that returns a list of paths to specify the source files you want\n   * to generate types from.\n   *\n   * If `groqCodegenInclude` is provided as a function then `groqCodegenExclude`\n   * will not be used.\n   */\n  groqCodegenInclude: ['./src/**/*.{js,jsx,ts,tsx}'],\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)) or a list of globs to\n   * specify which source files you want to exclude from type generation.\n   */\n  groqCodegenExclude: ['**/*.test.{js,ts,tsx}', '**/node_modules'],\n  /**\n   * Optionally provide a destination path to the resulting sanity schema types.\n   * The default value is `schema-types.d.ts`\n   */\n  // schemaTypesOutputPath: './schema-types.d.ts',\n  /**\n   * Optionally provide a destination path to the resulting sanity schema JSON.\n   * The default value is `schema-def.json`\n   */\n  // schemaJsonOutputPath: './schema-def.json',\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `query-types.d.ts`.\n   */\n  // queryTypesOutputPath: './query-types.d.ts',\n  /**\n   * Optionally provide an input `schema-def.json` file to be used for GROQ\n   * codegen. This is the `schemaJsonOutputPath` by default.\n   */\n  // schemaJsonInputPath: './schema-def.json',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelrcPath: './babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelOptions: {\n  //   // ...\n  // },\n  /**\n   * Determines from where files are relative to. Defaults to where your\n   * sanity-codegen config was found.\n   */\n  // root: process.cwd(),\n  /**\n   * You can directly provide a normalized instead of using a schema-def.json.\n   * A normalized schema (result of the `schemaNormalizer`)\n   * @see schemaNormalizer\n   */\n  // normalizedSchema: undefined,\n  /**\n   * Optionally provide a function that generates the typescript type identifer\n   * from the sanity type name. Use this function to override the default and\n   * prevent naming collisions.\n   */\n  // generateTypeName: undefined,\n  /**\n   * This option is fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigPath: undefined,\n  /**\n   * This options is also fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigOptions: undefined,\n};\n\nexport default config;\n```\n\n<!-- toc -->\n\n- [@sanity-codegen/cli](#sanity-codegencli)\n- [Usage](#usage)\n- [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.0 darwin-x64 node-v14.15.3\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n\n- [`sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`](#sanity-codegen-groq-codegen-groqcodegeninclude)\n- [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n- [`sanity-codegen schema-codegen [SCHEMAPATH]`](#sanity-codegen-schema-codegen-schemapath)\n\n## `sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen groq-codegen [GROQCODEGENINCLUDE]\n\nARGUMENTS\n  GROQCODEGENINCLUDE  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --groqCodegenExclude=groqCodegenExclude\n      Specify a glob or a list of globs to specify which source files you want\n      to exclude from type generation.\n\n  --queryTypesOutputPath=queryTypesOutputPath\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `query-types.d.ts`.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonInputPath=schemaJsonInputPath\n      Optionally provide an input `schema-def.json` file to be used for GROQ\n      codegen. This is the `schemaJsonOutputPath` by default.\n```\n\n_See code: [lib/commands/groq-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.0/lib/commands/groq-codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.2/src/commands/help.ts)_\n\n## `sanity-codegen schema-codegen [SCHEMAPATH]`\n\nloads a sanity schema and generates TypeScript types from it\n\n```\nUSAGE\n  $ sanity-codegen schema-codegen [SCHEMAPATH]\n\nARGUMENTS\n  SCHEMAPATH  Optionally provide the path to your sanity schema entry point. If not\n              provided, the CLI will try to get this value from your sanity.json file.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --babelOptions=babelOptions\n      Optionally provide babel options inline in a JSON blob. This will be\n      passed into the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --babelrcPath=babelrcPath\n      Optionally provide a path to a .babelrc file. This will be passed into\n      the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonOutputPath=schemaJsonOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      JSON. The default value is ./schema-def.json.\n\n  --schemaTypesOutputPath=schemaTypesOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      types. The default value is ./schema-types.d.ts.\n```\n\n_See code: [lib/commands/schema-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.0/lib/commands/schema-codegen.js)_\n\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.11","_nodeVersion":"14.17.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-SCCqn//hSLoXDkI18IVegeU1DGigtc3rMRc/nvhHhjsNV+9MYGIU/3jNILfmy3ClpkT/7TGKCY0wka1jOvFmMA==","shasum":"1236c97c15d5bd29963a68590693ad8cd5f029dd","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.11.tgz","fileCount":36,"unpackedSize":42636,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhInuUCRA9TVsSAnZWagAAhcEP/j/trVf/a09pFWyhVion\nIkGw1pc2iTmlhua1Is8SySDTZWvTcrhsbVy31WZJA8GPA5sWwLFUQ0/bG/AT\nZFFMy4YQQj1S3Xs48Vos191n7aRvOmUb21qV+TbP7kdd4BidILSznEuaHY6R\nIKv/lysBP2dZHDwtIvmyd5EXrHe4TyZBQQdIYSYpQ+cdnhka0J/SWiuxfpQV\n5gZrDQ+j9Sm/yDPASfS6LqmWIwDKnouJ+r4NbN0H11iBatm5lkvKTM48guEA\nw9bnWSX0u28qOQm9wpw36v7OKhX+W4K/2wlia7O1n9yoUheEl57nOJIE+qxK\n5V5aNriIolILyBFJxu/R3jtxdZUuTQ5zLm+XA1wxB5gcVbQFX6RNaXHDabv3\nZjdIRg16RbSjp7/NH3Aw4YjJQa+HR1s1ZyikkoDnm1X7QbuXjfPLXDkBEytL\neDmpAM8HV+byptOC+Qbqc8wEMeD0522gchb2HlMdfcQ9klaWcaIotyuvF8g2\nEE13SyOEEM/aIf+SbpDfdwOZRcOq/bjDfl1TKCAFtNDFiItDBw5Z6nK8b6eM\nYT/qTCo4IyLLMN8aGy+n01hsxBFWJD4SXjAmG9iNdPmwJFT/rOtYeSaoJrVQ\nHbVGF1c6T9cAsZQh2DCaT4NSpIocUlXvJ8JKeXnID1E7l0+uhgLMox6LlaSi\n7f5w\r\n=vJ9E\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChOGWW6p0UQm8U9gwsR3O0N3sErmMDHkqVEXrZB8LSMwIgfUjdeh5e8nscCPhKpkmhn0/SPtOmQFG2jEbRCvHwsLc="}]},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.11_1629649812746_0.864418929911126"},"_hasShrinkwrap":false},"1.0.0-alpha.12":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.12","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"lib/index.js","types":"lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"prepack":"rm -rf lib && npm run build && oclif-dev manifest && oclif-dev readme","postpack":"rm -f oclif.manifest.json","build":"./scripts/build","test":"jest","version":"oclif-dev readme && git add README.md","sort-package-json":"sort-package-json","typecheck":"tsc --noEmit --emitDeclarationOnly false","lint":"eslint --ext .ts,.js ./src","clean":"rm -rf node_modules"},"dependencies":{"@babel/core":"^7.14.8","@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-help":"^3.2.2","babel-merge":"^3.0.0","chalk":"^4.1.2","common-tags":"^1.8.0","ora":"^5.4.1","rxjs":"^7.3.0","@sanity-codegen/schema-codegen":"1.0.0-alpha.12","@sanity-codegen/groq-codegen":"1.0.0-alpha.12"},"devDependencies":{"@oclif/dev-cli":"^1.26.0","@types/common-tags":"^1.8.0","@types/node":"^10.17.56","globby":"^10.0.2"},"engines":{"node":">=10.0.0"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"selfDependencies":["@sanity-codegen/schema-codegen","@sanity-codegen/groq-codegen"],"readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  schemaPath: './schema',\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)), a list of globs, or a\n   * function that returns a list of paths to specify the source files you want\n   * to generate types from.\n   *\n   * If `groqCodegenInclude` is provided as a function then `groqCodegenExclude`\n   * will not be used.\n   */\n  groqCodegenInclude: ['./src/**/*.{js,jsx,ts,tsx}'],\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)) or a list of globs to\n   * specify which source files you want to exclude from type generation.\n   */\n  groqCodegenExclude: ['**/*.test.{js,ts,tsx}', '**/node_modules'],\n  /**\n   * Optionally provide a destination path to the resulting sanity schema types.\n   * The default value is `schema-types.d.ts`\n   */\n  // schemaTypesOutputPath: './schema-types.d.ts',\n  /**\n   * Optionally provide a destination path to the resulting sanity schema JSON.\n   * The default value is `schema-def.json`\n   */\n  // schemaJsonOutputPath: './schema-def.json',\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `query-types.d.ts`.\n   */\n  // queryTypesOutputPath: './query-types.d.ts',\n  /**\n   * Optionally provide an input `schema-def.json` file to be used for GROQ\n   * codegen. This is the `schemaJsonOutputPath` by default.\n   */\n  // schemaJsonInputPath: './schema-def.json',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelrcPath: './babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelOptions: {\n  //   // ...\n  // },\n  /**\n   * Determines from where files are relative to. Defaults to where your\n   * sanity-codegen config was found.\n   */\n  // root: process.cwd(),\n  /**\n   * You can directly provide a normalized instead of using a schema-def.json.\n   * A normalized schema (result of the `schemaNormalizer`)\n   * @see schemaNormalizer\n   */\n  // normalizedSchema: undefined,\n  /**\n   * Optionally provide a function that generates the typescript type identifer\n   * from the sanity type name. Use this function to override the default and\n   * prevent naming collisions.\n   */\n  // generateTypeName: undefined,\n  /**\n   * This option is fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigPath: undefined,\n  /**\n   * This options is also fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigOptions: undefined,\n};\n\nexport default config;\n```\n\n<!-- toc -->\n\n- [@sanity-codegen/cli](#sanity-codegencli)\n- [Usage](#usage)\n- [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.0 darwin-x64 node-v14.15.3\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n\n- [`sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`](#sanity-codegen-groq-codegen-groqcodegeninclude)\n- [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n- [`sanity-codegen schema-codegen [SCHEMAPATH]`](#sanity-codegen-schema-codegen-schemapath)\n\n## `sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen groq-codegen [GROQCODEGENINCLUDE]\n\nARGUMENTS\n  GROQCODEGENINCLUDE  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --groqCodegenExclude=groqCodegenExclude\n      Specify a glob or a list of globs to specify which source files you want\n      to exclude from type generation.\n\n  --queryTypesOutputPath=queryTypesOutputPath\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `query-types.d.ts`.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonInputPath=schemaJsonInputPath\n      Optionally provide an input `schema-def.json` file to be used for GROQ\n      codegen. This is the `schemaJsonOutputPath` by default.\n```\n\n_See code: [lib/commands/groq-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.0/lib/commands/groq-codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.2/src/commands/help.ts)_\n\n## `sanity-codegen schema-codegen [SCHEMAPATH]`\n\nloads a sanity schema and generates TypeScript types from it\n\n```\nUSAGE\n  $ sanity-codegen schema-codegen [SCHEMAPATH]\n\nARGUMENTS\n  SCHEMAPATH  Optionally provide the path to your sanity schema entry point. If not\n              provided, the CLI will try to get this value from your sanity.json file.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --babelOptions=babelOptions\n      Optionally provide babel options inline in a JSON blob. This will be\n      passed into the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --babelrcPath=babelrcPath\n      Optionally provide a path to a .babelrc file. This will be passed into\n      the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonOutputPath=schemaJsonOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      JSON. The default value is ./schema-def.json.\n\n  --schemaTypesOutputPath=schemaTypesOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      types. The default value is ./schema-types.d.ts.\n```\n\n_See code: [lib/commands/schema-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.0/lib/commands/schema-codegen.js)_\n\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.12","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-fczx6FmE4qCZn1BQQXwmikMuom4DH4ccs8S9XWW83LDA0vNcUVlorabo6zlLCa3hU62OsDmC4EurD4kszMUzeA==","shasum":"083b5184667b7bafa20b48d515421064400ea986","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.12.tgz","fileCount":40,"unpackedSize":47510,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOoMCdOn6xiK7v/PXncjmQPzuE6I1boKxUphw0mPWpLwIhAN8f0xPXSDMrwk0dqPzHoeR9XLtYKF7wY7F3Ug0QMAAv"}]},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.12_1635876629061_0.25006159261873506"},"_hasShrinkwrap":false},"1.0.0-alpha.13":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.13","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"./lib/index.js","types":"./lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"build":"./scripts/build","clean":"rm -rf node_modules && tsc -b --clean","lint":"eslint --ext .ts,.js ./src","prepack":"rm -rf lib && npm run build && oclif-dev manifest && oclif-dev readme","postpack":"rm -f oclif.manifest.json","sort-package-json":"sort-package-json","test":"jest","version":"npx oclif-dev readme && git add README.md"},"jest":{"transform":{"\\.[jt]sx?$":["babel-jest",{"rootMode":"upward"}]}},"dependencies":{"@babel/core":"^7.14.8","@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-help":"^3.2.2","@sanity-codegen/groq-codegen":"^1.0.0-alpha.13","@sanity-codegen/schema-codegen":"^1.0.0-alpha.13","@sanity-codegen/types":"^1.0.0-alpha.13","babel-merge":"^3.0.0","chalk":"^4.1.2","common-tags":"^1.8.0","ora":"^5.4.1","rxjs":"^7.3.0"},"devDependencies":{"@oclif/dev-cli":"^1.26.0","@types/common-tags":"^1.8.0","@types/node":"^10.17.56","globby":"^10.0.2"},"engines":{"node":">=12.22.0"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"gitHead":"a9b65a0ba68d9b6fe9c68473fc8c2ce998e4318f","_id":"@sanity-codegen/cli@1.0.0-alpha.13","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+arm64 (darwin)","dist":{"integrity":"sha512-yO86AeuWbhEJwlwNsz1jJgbX1vrVFjKE2rLtxCz0EnUxnx66+Kfn2m3ZSgMvarqvA8cZvUomtx0LiT/SnHDDQg==","shasum":"7a385206ca05010d3c554f63d5c0d2ad4daafa37","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.13.tgz","fileCount":57,"unpackedSize":53191,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2ZovCRA9TVsSAnZWagAA1q8P/0UAB/CELno/WXKj4/WO\nxEXE3nUPOoEySxOwpDFAcf+mDqFdfgQa45fhnGE5rRlxk6PPj7f7teHbhrxv\nTmUC1gDXySkUWwXypN4UQfTbo8woA5PyXf62XoJO0S9niKDDj9ttmuB6cQkF\noskmDUGMeg0beD6VF5waHAQQwQRLWa5e5hQTX1VbjysOeSGaszVXryZUehRe\nP84X4BBIVOHceAz49gu5x5rlZw1NqYFJFbbB00qU6oPxn73wpfOE3G7R9vl8\nLx4cDMcJ9+xjt+T7pvTDBJUK9A8VWP2P/Nt1q7RentE8muI2clf+LuxiAaXJ\n0RYRTZzCoYCLhZgQ+Aj88T/u+856fZLFNQNBwnFkVehxHwSMW+gmfEiPFhuL\nPEJyQqjTaZ0ckK/6ZZUE/htLHx8lLIe5ejZXKPjRVT33Nxpg/xySH7sUPlua\nkfgOPoFGeXB83VQQFavUiHsKLvf8Pr3KOXSeDPu2W5RNXHgplYqDtt02ynaQ\nbDkk8ClP3wx1uk/ygg5EzuB/sT8mFT6542sm2lmXviR7ZqhHB6xRDqC6orG7\nCHR4UesscwA6Gc7nAbvestyAKu/1GDuVTQPp1o4nFEhu03MecmKgVfl4tV+8\nlL7ZWCXeq9+q0KMI7NAFAlBoufB1VaI6yCW3uBEZ/qTvFXTtqyNxXto12ppw\nIZ4v\r\n=EIUp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDopFDYWjkxX5E3OBbr4UuYpxwzbuVvWxofFoO+se2oJQIgDgy3Y7MHGpDA8Ws1m856Frpprrm/uIA4xaTyX6RFbdA="}]},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.13_1636939128694_0.8366967981333282"},"_hasShrinkwrap":false},"1.0.0-alpha.19":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.19","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"./lib/index.js","types":"./lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"build":"./scripts/build","clean":"rm -rf node_modules && tsc -b --clean","lint":"eslint --ext .ts,.js ./src","prepack":"rm -rf lib && npm run build && npx oclif-dev manifest && npx oclif-dev readme","postpack":"rm -f oclif.manifest.json","sort-package-json":"sort-package-json","test":"jest","version":"npx oclif-dev readme && git add README.md"},"jest":{"transform":{"\\.[jt]sx?$":["babel-jest",{"rootMode":"upward"}]}},"dependencies":{"@babel/core":"^7.14.8","@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-help":"^3.2.2","@sanity-codegen/groq-codegen":"^1.0.0-alpha.19","@sanity-codegen/schema-codegen":"^1.0.0-alpha.19","@sanity-codegen/types":"^1.0.0-alpha.19","babel-merge":"^3.0.0","chalk":"^4.1.2","common-tags":"^1.8.0","ora":"^5.4.1","rxjs":"^7.3.0"},"devDependencies":{"@oclif/dev-cli":"^1.26.0","@types/common-tags":"^1.8.0","@types/node":"^10.17.56","globby":"^10.0.2"},"engines":{"node":">=12.22.0"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"gitHead":"6936648bc946381c7067a823b9be2dab787e750e","readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  schemaPath: './schema',\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)), a list of globs, or a\n   * function that returns a list of paths to specify the source files you want\n   * to generate types from.\n   *\n   * If `groqCodegenInclude` is provided as a function then `groqCodegenExclude`\n   * will not be used.\n   */\n  groqCodegenInclude: ['./src/**/*.{js,jsx,ts,tsx}'],\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)) or a list of globs to\n   * specify which source files you want to exclude from type generation.\n   */\n  groqCodegenExclude: ['**/*.test.{js,ts,tsx}', '**/node_modules'],\n  /**\n   * Optionally provide a destination path to the resulting sanity schema types.\n   * The default value is `schema-types.d.ts`\n   */\n  // schemaTypesOutputPath: './schema-types.d.ts',\n  /**\n   * Optionally provide a destination path to the resulting sanity schema JSON.\n   * The default value is `schema-def.json`\n   */\n  // schemaJsonOutputPath: './schema-def.json',\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `query-types.d.ts`.\n   */\n  // queryTypesOutputPath: './query-types.d.ts',\n  /**\n   * Optionally provide an input `schema-def.json` file to be used for GROQ\n   * codegen. This is the `schemaJsonOutputPath` by default.\n   */\n  // schemaJsonInputPath: './schema-def.json',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelrcPath: './babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelOptions: {\n  //   // ...\n  // },\n  /**\n   * Determines from where files are relative to. Defaults to where your\n   * sanity-codegen config was found.\n   */\n  // root: process.cwd(),\n  /**\n   * You can directly provide a normalized instead of using a schema-def.json.\n   * A normalized schema (result of the `schemaNormalizer`)\n   * @see schemaNormalizer\n   */\n  // normalizedSchema: undefined,\n  /**\n   * Optionally provide a function that generates the typescript type identifer\n   * from the sanity type name. Use this function to override the default and\n   * prevent naming collisions.\n   */\n  // generateTypeName: undefined,\n  /**\n   * This option is fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigPath: undefined,\n  /**\n   * This options is also fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigOptions: undefined,\n};\n\nexport default config;\n```\n\n<!-- toc -->\n* [@sanity-codegen/cli](#sanity-codegencli)\n* [Usage](#usage)\n* [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.19 darwin-arm64 node-v16.13.0\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n* [`sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`](#sanity-codegen-groq-codegen-groqcodegeninclude)\n* [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n* [`sanity-codegen schema-codegen [SCHEMAPATH]`](#sanity-codegen-schema-codegen-schemapath)\n\n## `sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen groq-codegen [GROQCODEGENINCLUDE]\n\nARGUMENTS\n  GROQCODEGENINCLUDE  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --groqCodegenExclude=groqCodegenExclude\n      Specify a glob or a list of globs to specify which source files you want\n      to exclude from type generation.\n\n  --queryTypesOutputPath=queryTypesOutputPath\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `query-types.d.ts`.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonInputPath=schemaJsonInputPath\n      Optionally provide an input `schema-def.json` file to be used for GROQ\n      codegen. This is the `schemaJsonOutputPath` by default.\n```\n\n_See code: [lib/commands/groq-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.19/lib/commands/groq-codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.4/src/commands/help.ts)_\n\n## `sanity-codegen schema-codegen [SCHEMAPATH]`\n\nloads a sanity schema and generates TypeScript types from it\n\n```\nUSAGE\n  $ sanity-codegen schema-codegen [SCHEMAPATH]\n\nARGUMENTS\n  SCHEMAPATH  Optionally provide the path to your sanity schema entry point. If not\n              provided, the CLI will try to get this value from your sanity.json file.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --babelOptions=babelOptions\n      Optionally provide babel options inline in a JSON blob. This will be\n      passed into the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --babelrcPath=babelrcPath\n      Optionally provide a path to a .babelrc file. This will be passed into\n      the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonOutputPath=schemaJsonOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      JSON. The default value is ./schema-def.json.\n\n  --schemaTypesOutputPath=schemaTypesOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      types. The default value is ./schema-types.d.ts.\n```\n\n_See code: [lib/commands/schema-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.19/lib/commands/schema-codegen.js)_\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.19","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+arm64 (darwin)","dist":{"integrity":"sha512-1/AvSqVp4e8hQkSvyorHqiZpQE/uVDp49cL8TkTzw16FVDbnadwcq/3zHvEGpA38VsuJLEj/phkhWGK5TSY5gg==","shasum":"534918d16eff60cd9a7082a5be1509ab476b5ed5","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.19.tgz","fileCount":57,"unpackedSize":53199,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9EqtFIufBoNIOh92n8NPHW9ZEnzBrPX0kbrKjyDgQSgIgQG1sOlRsma/1ohgkFA1Q7PqqHFk3bgFe0WLtKPA0MtE="}]},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.19_1636944157045_0.12500123769583915"},"_hasShrinkwrap":false},"1.0.0-alpha.24":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.24","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"./lib/index.js","types":"./lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"build":"./scripts/build","clean":"rm -rf node_modules && tsc -b --clean","lint":"eslint --ext .ts,.js ./src","prepack":"./scripts/prepack","postpack":"rm -f oclif.manifest.json","sort-package-json":"sort-package-json","test":"jest","version":"npx oclif-dev readme && git add README.md"},"jest":{"transform":{"\\.[jt]sx?$":["babel-jest",{"rootMode":"upward"}]}},"dependencies":{"@babel/core":"^7.14.8","@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-help":"^3.2.2","@sanity-codegen/groq-codegen":"^1.0.0-alpha.19","@sanity-codegen/schema-codegen":"^1.0.0-alpha.19","@sanity-codegen/types":"^1.0.0-alpha.19","babel-merge":"^3.0.0","chalk":"^4.1.2","common-tags":"^1.8.0","ora":"^5.4.1","rxjs":"^7.3.0"},"devDependencies":{"@oclif/dev-cli":"^1.26.0","@types/common-tags":"^1.8.0","@types/node":"^10.17.56","globby":"^10.0.2"},"engines":{"node":">=12.22.0"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"gitHead":"ff418ba2fa97aad4871615eaecb2b2818d61b970","readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  schemaPath: './schema',\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)), a list of globs, or a\n   * function that returns a list of paths to specify the source files you want\n   * to generate types from.\n   *\n   * If `groqCodegenInclude` is provided as a function then `groqCodegenExclude`\n   * will not be used.\n   */\n  groqCodegenInclude: ['./src/**/*.{js,jsx,ts,tsx}'],\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)) or a list of globs to\n   * specify which source files you want to exclude from type generation.\n   */\n  groqCodegenExclude: ['**/*.test.{js,ts,tsx}', '**/node_modules'],\n  /**\n   * Optionally provide a destination path to the resulting sanity schema types.\n   * The default value is `schema-types.d.ts`\n   */\n  // schemaTypesOutputPath: './schema-types.d.ts',\n  /**\n   * Optionally provide a destination path to the resulting sanity schema JSON.\n   * The default value is `schema-def.json`\n   */\n  // schemaJsonOutputPath: './schema-def.json',\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `query-types.d.ts`.\n   */\n  // queryTypesOutputPath: './query-types.d.ts',\n  /**\n   * Optionally provide an input `schema-def.json` file to be used for GROQ\n   * codegen. This is the `schemaJsonOutputPath` by default.\n   */\n  // schemaJsonInputPath: './schema-def.json',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelrcPath: './babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelOptions: {\n  //   // ...\n  // },\n  /**\n   * Determines from where files are relative to. Defaults to where your\n   * sanity-codegen config was found.\n   */\n  // root: process.cwd(),\n  /**\n   * You can directly provide a normalized instead of using a schema-def.json.\n   * A normalized schema (result of the `schemaNormalizer`)\n   * @see schemaNormalizer\n   */\n  // normalizedSchema: undefined,\n  /**\n   * Optionally provide a function that generates the typescript type identifer\n   * from the sanity type name. Use this function to override the default and\n   * prevent naming collisions.\n   */\n  // generateTypeName: undefined,\n  /**\n   * This option is fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigPath: undefined,\n  /**\n   * This options is also fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigOptions: undefined,\n};\n\nexport default config;\n```\n\n<!-- toc -->\n* [@sanity-codegen/cli](#sanity-codegencli)\n* [Usage](#usage)\n* [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.24 linux-x64 node-v16.13.0\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n* [`sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`](#sanity-codegen-groq-codegen-groqcodegeninclude)\n* [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n* [`sanity-codegen schema-codegen [SCHEMAPATH]`](#sanity-codegen-schema-codegen-schemapath)\n\n## `sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen groq-codegen [GROQCODEGENINCLUDE]\n\nARGUMENTS\n  GROQCODEGENINCLUDE  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --groqCodegenExclude=groqCodegenExclude\n      Specify a glob or a list of globs to specify which source files you want\n      to exclude from type generation.\n\n  --queryTypesOutputPath=queryTypesOutputPath\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `query-types.d.ts`.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonInputPath=schemaJsonInputPath\n      Optionally provide an input `schema-def.json` file to be used for GROQ\n      codegen. This is the `schemaJsonOutputPath` by default.\n```\n\n_See code: [lib/commands/groq-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.24/lib/commands/groq-codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.4/src/commands/help.ts)_\n\n## `sanity-codegen schema-codegen [SCHEMAPATH]`\n\nloads a sanity schema and generates TypeScript types from it\n\n```\nUSAGE\n  $ sanity-codegen schema-codegen [SCHEMAPATH]\n\nARGUMENTS\n  SCHEMAPATH  Optionally provide the path to your sanity schema entry point. If not\n              provided, the CLI will try to get this value from your sanity.json file.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --babelOptions=babelOptions\n      Optionally provide babel options inline in a JSON blob. This will be\n      passed into the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --babelrcPath=babelrcPath\n      Optionally provide a path to a .babelrc file. This will be passed into\n      the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonOutputPath=schemaJsonOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      JSON. The default value is ./schema-def.json.\n\n  --schemaTypesOutputPath=schemaTypesOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      types. The default value is ./schema-types.d.ts.\n```\n\n_See code: [lib/commands/schema-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.24/lib/commands/schema-codegen.js)_\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.24","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (linux)","dist":{"integrity":"sha512-cNjjSD6ICux+zswmPDSwaR1S0sljqHH7MegVJjm9zjjrhVZMugPskqR1DQuMWpAoMLHdALzP+YO1E1ifE/yu2w==","shasum":"79a550108812b1f927769c6f70d65aeb63d0e684","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.24.tgz","fileCount":57,"unpackedSize":53136,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/kUWdbZlC9qyVjnIgl0CzOxdrne0KisgAmj9j8lrqvQIhAJXkxRgeXMom4HAv/G3dRFoohU0roQ93Jxqvown5kuFa"}]},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.24_1636947429313_0.12098443260758485"},"_hasShrinkwrap":false},"1.0.0-alpha.25":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.25","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"./lib/index.js","types":"./lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"build":"./scripts/build","clean":"rm -rf node_modules && tsc -b --clean","lint":"eslint --ext .ts,.js ./src","prepack":"./scripts/prepack","postpack":"rm -f oclif.manifest.json","sort-package-json":"sort-package-json","test":"jest","version":"npx oclif-dev readme && git add README.md"},"jest":{"transform":{"\\.[jt]sx?$":["babel-jest",{"rootMode":"upward"}]}},"dependencies":{"@babel/core":"^7.14.8","@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-help":"^3.2.2","@sanity-codegen/groq-codegen":"^1.0.0-alpha.25","@sanity-codegen/schema-codegen":"^1.0.0-alpha.25","@sanity-codegen/types":"^1.0.0-alpha.25","babel-merge":"^3.0.0","chalk":"^4.1.2","common-tags":"^1.8.0","ora":"^5.4.1","rxjs":"^7.3.0"},"devDependencies":{"@oclif/dev-cli":"^1.26.0","@types/common-tags":"^1.8.0","@types/node":"^10.17.56","globby":"^10.0.2"},"engines":{"node":">=12.22.0"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"gitHead":"aa3e8aa6095e06f5fc7b70bf852fedf5ab5f0d45","readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  schemaPath: './schema',\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)), a list of globs, or a\n   * function that returns a list of paths to specify the source files you want\n   * to generate types from.\n   *\n   * If `groqCodegenInclude` is provided as a function then `groqCodegenExclude`\n   * will not be used.\n   */\n  groqCodegenInclude: ['./src/**/*.{js,jsx,ts,tsx}'],\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)) or a list of globs to\n   * specify which source files you want to exclude from type generation.\n   */\n  groqCodegenExclude: ['**/*.test.{js,ts,tsx}', '**/node_modules'],\n  /**\n   * Optionally provide a destination path to the resulting sanity schema types.\n   * The default value is `schema-types.d.ts`\n   */\n  // schemaTypesOutputPath: './schema-types.d.ts',\n  /**\n   * Optionally provide a destination path to the resulting sanity schema JSON.\n   * The default value is `schema-def.json`\n   */\n  // schemaJsonOutputPath: './schema-def.json',\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `query-types.d.ts`.\n   */\n  // queryTypesOutputPath: './query-types.d.ts',\n  /**\n   * Optionally provide an input `schema-def.json` file to be used for GROQ\n   * codegen. This is the `schemaJsonOutputPath` by default.\n   */\n  // schemaJsonInputPath: './schema-def.json',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelrcPath: './babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelOptions: {\n  //   // ...\n  // },\n  /**\n   * Determines from where files are relative to. Defaults to where your\n   * sanity-codegen config was found.\n   */\n  // root: process.cwd(),\n  /**\n   * You can directly provide a normalized instead of using a schema-def.json.\n   * A normalized schema (result of the `schemaNormalizer`)\n   * @see schemaNormalizer\n   */\n  // normalizedSchema: undefined,\n  /**\n   * Optionally provide a function that generates the typescript type identifer\n   * from the sanity type name. Use this function to override the default and\n   * prevent naming collisions.\n   */\n  // generateTypeName: undefined,\n  /**\n   * This option is fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigPath: undefined,\n  /**\n   * This options is also fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigOptions: undefined,\n};\n\nexport default config;\n```\n\n<!-- toc -->\n* [@sanity-codegen/cli](#sanity-codegencli)\n* [Usage](#usage)\n* [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.25 linux-x64 node-v16.13.0\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n* [`sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`](#sanity-codegen-groq-codegen-groqcodegeninclude)\n* [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n* [`sanity-codegen schema-codegen [SCHEMAPATH]`](#sanity-codegen-schema-codegen-schemapath)\n\n## `sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen groq-codegen [GROQCODEGENINCLUDE]\n\nARGUMENTS\n  GROQCODEGENINCLUDE  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --groqCodegenExclude=groqCodegenExclude\n      Specify a glob or a list of globs to specify which source files you want\n      to exclude from type generation.\n\n  --queryTypesOutputPath=queryTypesOutputPath\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `query-types.d.ts`.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonInputPath=schemaJsonInputPath\n      Optionally provide an input `schema-def.json` file to be used for GROQ\n      codegen. This is the `schemaJsonOutputPath` by default.\n```\n\n_See code: [lib/commands/groq-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.25/lib/commands/groq-codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.4/src/commands/help.ts)_\n\n## `sanity-codegen schema-codegen [SCHEMAPATH]`\n\nloads a sanity schema and generates TypeScript types from it\n\n```\nUSAGE\n  $ sanity-codegen schema-codegen [SCHEMAPATH]\n\nARGUMENTS\n  SCHEMAPATH  Optionally provide the path to your sanity schema entry point. If not\n              provided, the CLI will try to get this value from your sanity.json file.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --babelOptions=babelOptions\n      Optionally provide babel options inline in a JSON blob. This will be\n      passed into the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --babelrcPath=babelrcPath\n      Optionally provide a path to a .babelrc file. This will be passed into\n      the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonOutputPath=schemaJsonOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      JSON. The default value is ./schema-def.json.\n\n  --schemaTypesOutputPath=schemaTypesOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      types. The default value is ./schema-types.d.ts.\n```\n\n_See code: [lib/commands/schema-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.25/lib/commands/schema-codegen.js)_\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.25","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (linux)","dist":{"integrity":"sha512-IPNUNCljT9aU0Cg6U+TvQ7GnpzgLbZrQGF5wH7j9PJw0DH+RHSFSiuNiEIZl+VqgQGKJykNEr/Xfvljr6IsmFQ==","shasum":"12443727cd9483d38eba62b5a8a0f46337eef020","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.25.tgz","fileCount":57,"unpackedSize":53136,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtdnZUEz3IHExZMHjuxen71dyja7ECd4qCCjyF9ax1iQIgZrRLU3rubv5tkLudLwdgJzUVOk7jm8NrjfdnrJsxTiY="}]},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.25_1636947793940_0.5552020661807964"},"_hasShrinkwrap":false},"1.0.0-alpha.26":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.26","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"./lib/index.js","types":"./lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"build":"./scripts/build","clean":"rm -rf node_modules && tsc -b --clean","lint":"eslint --ext .ts,.js ./src","prepack":"./scripts/prepack","postpack":"rm -f oclif.manifest.json","sort-package-json":"sort-package-json","test":"jest","version":"npx oclif-dev readme && git add README.md"},"jest":{"transform":{"\\.[jt]sx?$":["babel-jest",{"rootMode":"upward"}]}},"dependencies":{"@babel/core":"^7.14.8","@oclif/command":"^1.8.0","@oclif/config":"^1.17.0","@oclif/plugin-help":"^3.2.2","@sanity-codegen/groq-codegen":"^1.0.0-alpha.26","@sanity-codegen/schema-codegen":"^1.0.0-alpha.26","@sanity-codegen/types":"^1.0.0-alpha.25","babel-merge":"^3.0.0","chalk":"^4.1.2","common-tags":"^1.8.0","ora":"^5.4.1","rxjs":"^7.3.0"},"devDependencies":{"@oclif/dev-cli":"^1.26.0","@types/common-tags":"^1.8.0","@types/node":"^10.17.56","globby":"^10.0.2"},"engines":{"node":">=12.22.0"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"gitHead":"f38d84effdac91e7fc0ba4817a48387e39a73ec9","readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  schemaPath: './schema',\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)), a list of globs, or a\n   * function that returns a list of paths to specify the source files you want\n   * to generate types from.\n   *\n   * If `groqCodegenInclude` is provided as a function then `groqCodegenExclude`\n   * will not be used.\n   */\n  groqCodegenInclude: ['./src/**/*.{js,jsx,ts,tsx}'],\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)) or a list of globs to\n   * specify which source files you want to exclude from type generation.\n   */\n  groqCodegenExclude: ['**/*.test.{js,ts,tsx}', '**/node_modules'],\n  /**\n   * Optionally provide a destination path to the resulting sanity schema types.\n   * The default value is `schema-types.d.ts`\n   */\n  // schemaTypesOutputPath: './schema-types.d.ts',\n  /**\n   * Optionally provide a destination path to the resulting sanity schema JSON.\n   * The default value is `schema-def.json`\n   */\n  // schemaJsonOutputPath: './schema-def.json',\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `query-types.d.ts`.\n   */\n  // queryTypesOutputPath: './query-types.d.ts',\n  /**\n   * Optionally provide an input `schema-def.json` file to be used for GROQ\n   * codegen. This is the `schemaJsonOutputPath` by default.\n   */\n  // schemaJsonInputPath: './schema-def.json',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelrcPath: './babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelOptions: {\n  //   // ...\n  // },\n  /**\n   * Determines from where files are relative to. Defaults to where your\n   * sanity-codegen config was found.\n   */\n  // root: process.cwd(),\n  /**\n   * You can directly provide a normalized instead of using a schema-def.json.\n   * A normalized schema (result of the `schemaNormalizer`)\n   * @see schemaNormalizer\n   */\n  // normalizedSchema: undefined,\n  /**\n   * Optionally provide a function that generates the typescript type identifer\n   * from the sanity type name. Use this function to override the default and\n   * prevent naming collisions.\n   */\n  // generateTypeName: undefined,\n  /**\n   * This option is fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigPath: undefined,\n  /**\n   * This options is also fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigOptions: undefined,\n};\n\nexport default config;\n```\n\n<!-- toc -->\n* [@sanity-codegen/cli](#sanity-codegencli)\n* [Usage](#usage)\n* [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.26 linux-x64 node-v16.13.2\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n* [`sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`](#sanity-codegen-groq-codegen-groqcodegeninclude)\n* [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n* [`sanity-codegen schema-codegen [SCHEMAPATH]`](#sanity-codegen-schema-codegen-schemapath)\n\n## `sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen groq-codegen [GROQCODEGENINCLUDE]\n\nARGUMENTS\n  GROQCODEGENINCLUDE  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --groqCodegenExclude=groqCodegenExclude\n      Specify a glob or a list of globs to specify which source files you want\n      to exclude from type generation.\n\n  --queryTypesOutputPath=queryTypesOutputPath\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `query-types.d.ts`.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonInputPath=schemaJsonInputPath\n      Optionally provide an input `schema-def.json` file to be used for GROQ\n      codegen. This is the `schemaJsonOutputPath` by default.\n```\n\n_See code: [lib/commands/groq-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.26/lib/commands/groq-codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.3.1/src/commands/help.ts)_\n\n## `sanity-codegen schema-codegen [SCHEMAPATH]`\n\nloads a sanity schema and generates TypeScript types from it\n\n```\nUSAGE\n  $ sanity-codegen schema-codegen [SCHEMAPATH]\n\nARGUMENTS\n  SCHEMAPATH  Optionally provide the path to your sanity schema entry point. If not\n              provided, the CLI will try to get this value from your sanity.json file.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --babelOptions=babelOptions\n      Optionally provide babel options inline in a JSON blob. This will be\n      passed into the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --babelrcPath=babelrcPath\n      Optionally provide a path to a .babelrc file. This will be passed into\n      the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonOutputPath=schemaJsonOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      JSON. The default value is ./schema-def.json.\n\n  --schemaTypesOutputPath=schemaTypesOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      types. The default value is ./schema-types.d.ts.\n```\n\n_See code: [lib/commands/schema-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.26/lib/commands/schema-codegen.js)_\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.26","_nodeVersion":"16.13.2","_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","dist":{"integrity":"sha512-+ZWqRBZX9g1jvYuuDFhOM72wojvAiAewt9XhbMRKzLzZzvdFsEWFHQx96NhUbjkLo37qBCvAFLo7AEluSE5Ssw==","shasum":"86af68aec6ba11478d4718554c9133530858faa1","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.26.tgz","fileCount":57,"unpackedSize":52504,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8en9CRA9TVsSAnZWagAAsiwP/1eK1PsVz8WBPn2JAkBi\nbNKZxK9sIg+7nYW8vFc12voJZ7+2W0u265rdA6S3DE8YnEWTKJoDphdagO8X\nRZm7XSG2llDqug6KVWQry7km/n2PcsRnd7LiGc4q91fklNFmCQpqIIQi3cvd\nQlBRKRPOwB8qdH5oZjfIuOnroU1PTYgacGuWOuS+WVTur33366WZKzrLkFsv\naFwTOi7iPOftqWhrRZfOfGpkmq5i58f81ljPVjzqXxC7YXDYRnKZAbo/0WBa\nWYS+BNLVnK2n+6eA8u437ACuiI8aMNIfgWyvXrwMxqhRRy1cXKeyyoBchq4b\nnxxkrrvc8cJsK9ms34ilkt595PHABxVG0Ni9+c6JC0T6nB1uPb2vzhnceVnq\nKjz8DiriBCLyRCIfhJn6kWAVw6rLxpB3dK6/k6K+tAosy0/hG1P4UjdlPYxn\nDx2ZDBN5ujUeHOplQ5YYF5ChhsnqbXZi49WbvLHuEu1LHTiHT9dalO1Yqsl6\nPLqYXWAfY+J6emnPjBAqp/PIY5iq+kMqkcZnKEGpQ9/Z0ZiaJwQygYWPaDHA\ny6E5ou5BXXLB4qwaiequB5b6pi4vyt5hwTmkFilj03xL9C/SLP5RB4/ZoiOX\narS7nCRjJZBnE0tSw8ah8uTN5cHjDn0ht+RVgnn8PzyJzk++S5aouW+Y0B+1\n1h9j\r\n=iyrT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICeqcs53CgMDgWsXAqgoXOkt0GpAJ77WLZ+4Z8LZ9+VXAiEAsh1Tm5eBGsUJUb5B+E/XfX9Mkm+pfzh2Y8ma+0aN5Y4="}]},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.26_1643244029687_0.63308607751221"},"_hasShrinkwrap":false},"1.0.0-alpha.28":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.28","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"./lib/index.js","types":"./lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"build":"./scripts/build","clean":"rm -rf node_modules && tsc -b --clean","lint":"eslint --ext .ts,.js ./src","prepack":"./scripts/prepack","postpack":"rm -f oclif.manifest.json","sort-package-json":"sort-package-json","test":"jest","version":"npx oclif-dev readme && git add README.md"},"jest":{"transform":{"\\.[jt]sx?$":["babel-jest",{"rootMode":"upward"}]}},"dependencies":{"@babel/core":"^7.20.12","@oclif/command":"^1.8.21","@oclif/config":"^1.18.6","@oclif/plugin-help":"^5.2.0","@sanity-codegen/groq-codegen":"^1.0.0-alpha.28","@sanity-codegen/schema-codegen":"^1.0.0-alpha.28","@sanity-codegen/types":"^1.0.0-alpha.28","babel-merge":"^3.0.0","chalk":"^4.1.2","common-tags":"^1.8.2","ora":"^5.4.1","rxjs":"^7.8.0"},"devDependencies":{"@oclif/dev-cli":"^1.26.10","@types/common-tags":"^1.8.1","@types/node":"^18.11.18","globby":"~11.0.0"},"engines":{"node":">=12.22.0"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"gitHead":"ef0461cd92c901914d96daee70c4a638fac66a65","readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  // sanityConfigPath: './sanity.config.ts',\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)), a list of globs, or a\n   * function that returns a list of paths to specify the source files you want\n   * to generate types from.\n   *\n   * If `groqCodegenInclude` is provided as a function then `groqCodegenExclude`\n   * will not be used.\n   */\n  groqCodegenInclude: ['./src/**/*.{js,jsx,ts,tsx}'],\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)) or a list of globs to\n   * specify which source files you want to exclude from type generation.\n   */\n  groqCodegenExclude: ['**/*.test.{js,ts,tsx}', '**/node_modules'],\n  /**\n   * Optionally provide a destination path to the resulting sanity schema types.\n   * The default value is `schema-types.d.ts`\n   */\n  // schemaTypesOutputPath: './schema-types.d.ts',\n  /**\n   * Optionally provide a destination path to the resulting sanity schema JSON.\n   * The default value is `schema-def.json`\n   */\n  // schemaJsonOutputPath: './schema-def.json',\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `query-types.d.ts`.\n   */\n  // queryTypesOutputPath: './query-types.d.ts',\n  /**\n   * Optionally provide an input `schema-def.json` file to be used for GROQ\n   * codegen. This is the `schemaJsonOutputPath` by default.\n   */\n  // schemaJsonInputPath: './schema-def.json',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelrcPath: './babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelOptions: {\n  //   // ...\n  // },\n  /**\n   * Determines from where files are relative to. Defaults to where your\n   * sanity-codegen config was found.\n   */\n  // root: process.cwd(),\n  /**\n   * You can directly provide a normalized instead of using a schema-def.json.\n   * A normalized schema (result of the `schemaNormalizer`)\n   * @see schemaNormalizer\n   */\n  // normalizedSchema: undefined,\n  /**\n   * Optionally provide a function that generates the typescript type identifer\n   * from the sanity type name. Use this function to override the default and\n   * prevent naming collisions.\n   */\n  // generateTypeName: undefined,\n  /**\n   * This option is fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigPath: undefined,\n  /**\n   * This options is also fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigOptions: undefined,\n};\n\nexport default config;\n```\n\n<!-- toc -->\n* [@sanity-codegen/cli](#sanity-codegencli)\n* [Usage](#usage)\n* [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.28 linux-x64 node-v18.13.0\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n* [`sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`](#sanity-codegen-groq-codegen-groqcodegeninclude)\n* [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n* [`sanity-codegen schema-codegen [SANITYCONFIGPATH]`](#sanity-codegen-schema-codegen-sanityconfigpath)\n\n## `sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen groq-codegen [GROQCODEGENINCLUDE]\n\nARGUMENTS\n  GROQCODEGENINCLUDE  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --groqCodegenExclude=groqCodegenExclude\n      Specify a glob or a list of globs to specify which source files you want\n      to exclude from type generation.\n\n  --queryTypesOutputPath=queryTypesOutputPath\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `query-types.d.ts`.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonInputPath=schemaJsonInputPath\n      Optionally provide an input `schema-def.json` file to be used for GROQ\n      codegen. This is the `schemaJsonOutputPath` by default.\n```\n\n_See code: [lib/commands/groq-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.28/lib/commands/groq-codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.18/src/commands/help.ts)_\n\n## `sanity-codegen schema-codegen [SANITYCONFIGPATH]`\n\nloads a sanity schema and generates TypeScript types from it\n\n```\nUSAGE\n  $ sanity-codegen schema-codegen [SANITYCONFIGPATH]\n\nARGUMENTS\n  SANITYCONFIGPATH  Optionally provide the path to your sanity schema entry point. If not\n                    provided, the CLI will try to get this value from your sanity.json file.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --babelOptions=babelOptions\n      Optionally provide babel options inline in a JSON blob. This will be\n      passed into the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --babelrcPath=babelrcPath\n      Optionally provide a path to a .babelrc file. This will be passed into\n      the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonOutputPath=schemaJsonOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      JSON. The default value is ./schema-def.json.\n\n  --schemaTypesOutputPath=schemaTypesOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      types. The default value is ./schema-types.d.ts.\n```\n\n_See code: [lib/commands/schema-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.28/lib/commands/schema-codegen.js)_\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.28","_nodeVersion":"18.13.0","_npmVersion":"lerna/6.4.1/node@v18.13.0+x64 (linux)","dist":{"integrity":"sha512-z1Uf0rlK/EFuqE03VoMPdcOR4c74GlmgM131tDun3/72F6HUYRIhRojb56rykczWxZu6XbX6nPXVF84Z4sMKmQ==","shasum":"de60c6bb7f6f85765bf79fdd857aeb04a8f85551","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.28.tgz","fileCount":58,"unpackedSize":51812,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+jq7ZiP5Cd4IY/olUVZpMjc05VJ13uaveoMWCBxjoYQIgebRqlNDoy/FdfLjkE9pJJAS0x0pZoLvm1LsNGfec8iU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjyJQqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrlTBAAgWOh/x99A43FLyc36a8IbrMFztWe4yLQqph3LR/3SqgPrL2Y\r\nzycdscMqums0SAgkZ5vE7VLxtgC3KlzTaBcfCf8mreTR3xiYckVrEBEkHUu4\r\nLR26MAUdG4ZCmFgbcPGjPwV5N4EpKncJOJZmqH1e5jsnPAHcSZflzqHvWzF+\r\nkVkVEko3QsSCxTzHaePQA685zSJhhE26RUG3yZ1vvre18V39+4KYNZyC1HIB\r\nHPMJhgLlLXftvuC0hhMc7bqu76tTYgZUn0LXzr1kA3fcwKZleC9MCW4gOC0x\r\ni2/3vDMuZ7DBVDORz7b46Ohg8q+tqkphGopK3K7Wv0zJsbi1fxZMuRKaqH+n\r\nfbFQSQQGhRs2TtL+9gPk8hkyubfpEEk9xuW7BjxAnx47Z8CMbh4/hBtTH8dy\r\nMLNZJmwutSWBoxAs8mU/2fMvmbQl2Uru+u0+OvKiDufkCWknd/DtYrw7xJgT\r\nNPE58Aj8g9ad+jrVgIUeSbLo2arnesu36YIyyIjSmAgtj4xg4pQ4N+wRDVKL\r\n24PY0nzrlxGuOImZBw51YOutglOmXtJbpiHIaYcQ9oZaBsCfFo2hUGAONpPt\r\nvWmoZFHk3YKfcGSt90rdgUUiEp+FAeHrFdqVAcsVMds+4oZJ6qD1dw5vEOs6\r\n5gDnc3ug1XWYIlWFZd+kEfBogvkvwoi0z6U=\r\n=KlxN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.28_1674089514395_0.5681003139724041"},"_hasShrinkwrap":false},"1.0.0-alpha.29":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.29","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"./lib/index.js","types":"./lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"build":"./scripts/build","clean":"rm -rf node_modules && tsc -b --clean","lint":"eslint --ext .ts,.js ./src","prepack":"./scripts/prepack","postpack":"rm -f oclif.manifest.json","sort-package-json":"sort-package-json","test":"jest","version":"npx oclif-dev readme && git add README.md"},"dependencies":{"@babel/core":"^7.20.12","@oclif/command":"^1.8.21","@oclif/config":"^1.18.6","@oclif/plugin-help":"^5.2.0","@sanity-codegen/groq-codegen":"^1.0.0-alpha.29","@sanity-codegen/schema-codegen":"^1.0.0-alpha.29","@sanity-codegen/types":"^1.0.0-alpha.29","babel-merge":"^3.0.0","chalk":"^4.1.2","common-tags":"^1.8.2","ora":"^5.4.1","rxjs":"^7.8.0"},"devDependencies":{"@oclif/dev-cli":"^1.26.10","@types/common-tags":"^1.8.1","@types/node":"^18.11.18","globby":"~11.0.0"},"engines":{"node":">=12.22.0"},"publishConfig":{"access":"public"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"gitHead":"d7fcf5ca923c6423bb640fa36e552309e47d5031","readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  // sanityConfigPath: './sanity.config.ts',\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)), a list of globs, or a\n   * function that returns a list of paths to specify the source files you want\n   * to generate types from.\n   *\n   * If `groqCodegenInclude` is provided as a function then `groqCodegenExclude`\n   * will not be used.\n   */\n  groqCodegenInclude: ['./src/**/*.{js,jsx,ts,tsx}'],\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)) or a list of globs to\n   * specify which source files you want to exclude from type generation.\n   */\n  groqCodegenExclude: ['**/*.test.{js,ts,tsx}', '**/node_modules'],\n  /**\n   * Optionally provide a destination path to the resulting sanity schema types.\n   * The default value is `schema-types.d.ts`\n   */\n  // schemaTypesOutputPath: './schema-types.d.ts',\n  /**\n   * Optionally provide a destination path to the resulting sanity schema JSON.\n   * The default value is `schema-def.json`\n   */\n  // schemaJsonOutputPath: './schema-def.json',\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `query-types.d.ts`.\n   */\n  // queryTypesOutputPath: './query-types.d.ts',\n  /**\n   * Optionally provide an input `schema-def.json` file to be used for GROQ\n   * codegen. This is the `schemaJsonOutputPath` by default.\n   */\n  // schemaJsonInputPath: './schema-def.json',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelrcPath: './babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelOptions: {\n  //   // ...\n  // },\n  /**\n   * Determines from where files are relative to. Defaults to where your\n   * sanity-codegen config was found.\n   */\n  // root: process.cwd(),\n  /**\n   * You can directly provide a normalized instead of using a schema-def.json.\n   * A normalized schema (result of the `schemaNormalizer`)\n   * @see schemaNormalizer\n   */\n  // normalizedSchema: undefined,\n  /**\n   * Optionally provide a function that generates the typescript type identifer\n   * from the sanity type name. Use this function to override the default and\n   * prevent naming collisions.\n   */\n  // generateTypeName: undefined,\n  /**\n   * This option is fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigPath: undefined,\n  /**\n   * This options is also fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigOptions: undefined,\n};\n\nexport default config;\n```\n\n<!-- toc -->\n* [@sanity-codegen/cli](#sanity-codegencli)\n* [Usage](#usage)\n* [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.29 linux-x64 node-v18.13.0\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n* [`sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`](#sanity-codegen-groq-codegen-groqcodegeninclude)\n* [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n* [`sanity-codegen schema-codegen [SANITYCONFIGPATH]`](#sanity-codegen-schema-codegen-sanityconfigpath)\n\n## `sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen groq-codegen [GROQCODEGENINCLUDE]\n\nARGUMENTS\n  GROQCODEGENINCLUDE  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --groqCodegenExclude=groqCodegenExclude\n      Specify a glob or a list of globs to specify which source files you want\n      to exclude from type generation.\n\n  --queryTypesOutputPath=queryTypesOutputPath\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `query-types.d.ts`.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonInputPath=schemaJsonInputPath\n      Optionally provide an input `schema-def.json` file to be used for GROQ\n      codegen. This is the `schemaJsonOutputPath` by default.\n```\n\n_See code: [lib/commands/groq-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.29/lib/commands/groq-codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.18/src/commands/help.ts)_\n\n## `sanity-codegen schema-codegen [SANITYCONFIGPATH]`\n\nloads a sanity schema and generates TypeScript types from it\n\n```\nUSAGE\n  $ sanity-codegen schema-codegen [SANITYCONFIGPATH]\n\nARGUMENTS\n  SANITYCONFIGPATH  Optionally provide the path to your sanity schema entry point. If not\n                    provided, the CLI will try to get this value from your sanity.json file.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --babelOptions=babelOptions\n      Optionally provide babel options inline in a JSON blob. This will be\n      passed into the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --babelrcPath=babelrcPath\n      Optionally provide a path to a .babelrc file. This will be passed into\n      the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonOutputPath=schemaJsonOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      JSON. The default value is ./schema-def.json.\n\n  --schemaTypesOutputPath=schemaTypesOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      types. The default value is ./schema-types.d.ts.\n```\n\n_See code: [lib/commands/schema-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.29/lib/commands/schema-codegen.js)_\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.29","_nodeVersion":"18.13.0","_npmVersion":"lerna/6.4.1/node@v18.13.0+x64 (linux)","dist":{"integrity":"sha512-eCJ/X6aTu6l4zxhiX8Ja+G+xuJ1RTOWsLdAp6Sy/teqn8jOgHw08xkDPBRX6SkaM0Dh0pY2S7hFSn5wKv4MFeQ==","shasum":"68f924e9f285dc86a18be720b7c2465ff04e5541","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.29.tgz","fileCount":58,"unpackedSize":51715,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvwcBTZxDk4aUBiAdnA+rd2pc7Ep2tQ2Sm4+4YrR5bCwIgXe4DP8l7R+oeuNnQvF4iJ3SRlPZv9AIApcmbKPWJXUQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjyOCTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp+jA/+KQVeJrmhHUHJ2mOWypK/0Kf80P91w/0Wiier9vWQoSh0USCp\r\njs2/pNf7EF0weQCl+1AAil8BjuEPJ2FnX8G2/IEaiAdDuWgG5KHsRH7Q54GU\r\nQhLlcG2pWpzynaN+znt1R2N0iENgrQGKqAt+T90bVmfAXTxe38umUyzW3WRS\r\nD+0Jj/1KCSvog2w/k44SFysU15CLgNQcWWUdMtk4KQuDIKRt18Ljc6tXQH6v\r\n6+QL3sL9IxFG7RMgVniHf84cRq3vBXiu8dF+GFwdQBohlNJVAaPbDntMts1J\r\nPlpRLjhSrrSRuNqvsd3hGcFbTlHcjB4sYVuxdLCsXVW1C/DlnbW8k4tPks5X\r\nUhDxOiV8iEcysj3+AeZeqi7FDnFkTZyaNPhffVTX7dZRCGlXetZPKtMD34YU\r\nHftKPZtdZUMrQrb9HUnjribDrK7oXlSVuSO47mE3U11yEpl+ekpDKRHz2jqJ\r\nZIn/cns2xYm2+AHXq2eFKTqCCMpmWHPDeAtWYKHBrkdV9wZa5sVw78RxLbCh\r\n4OO/sMzi8sVFkL9ILM4jCEMMEXb/iovo+UF7fRy3eYtw/HMeWyCLZ1D/DyUx\r\nTeAVQj6Bq8Zw6TlkxS+UFdxEJXjhgm1FLN5GofMEOv8gwWDvHvnBEmnrVXie\r\nLMbhx6fxoCYe4XJ6rAptzBQGnpwegbpJSSo=\r\n=qp3j\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.29_1674109075371_0.7121723560920141"},"_hasShrinkwrap":false},"1.0.0-alpha.31":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.31","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"./lib/index.js","types":"./lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"build":"./scripts/build","clean":"rm -rf node_modules && tsc -b --clean","lint":"eslint --ext .ts,.js ./src","prepack":"./scripts/prepack","postpack":"rm -f oclif.manifest.json","sort-package-json":"sort-package-json","test":"jest","version":"npx oclif-dev readme && git add README.md"},"dependencies":{"@babel/core":"^7.20.12","@oclif/command":"^1.8.21","@oclif/config":"^1.18.6","@oclif/plugin-help":"^5.2.0","@sanity-codegen/groq-codegen":"^1.0.0-alpha.31","@sanity-codegen/schema-codegen":"^1.0.0-alpha.31","@sanity-codegen/types":"^1.0.0-alpha.29","babel-merge":"^3.0.0","chalk":"^4.1.2","common-tags":"^1.8.2","ora":"^5.4.1","rxjs":"^7.8.0"},"devDependencies":{"@oclif/dev-cli":"^1.26.10","@types/common-tags":"^1.8.1","@types/node":"^18.11.18","globby":"~11.0.0"},"engines":{"node":">=12.22.0"},"publishConfig":{"access":"public"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"gitHead":"bdbedb8b333f30b183214818450237908f04a10e","readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  // sanityConfigPath: './sanity.config.ts',\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)), a list of globs, or a\n   * function that returns a list of paths to specify the source files you want\n   * to generate types from.\n   *\n   * If `groqCodegenInclude` is provided as a function then `groqCodegenExclude`\n   * will not be used.\n   */\n  groqCodegenInclude: ['./src/**/*.{js,jsx,ts,tsx}'],\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)) or a list of globs to\n   * specify which source files you want to exclude from type generation.\n   */\n  groqCodegenExclude: ['**/*.test.{js,ts,tsx}', '**/node_modules'],\n  /**\n   * Optionally provide a destination path to the resulting sanity schema types.\n   * The default value is `schema-types.d.ts`\n   */\n  // schemaTypesOutputPath: './schema-types.d.ts',\n  /**\n   * Optionally provide a destination path to the resulting sanity schema JSON.\n   * The default value is `schema-def.json`\n   */\n  // schemaJsonOutputPath: './schema-def.json',\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `query-types.d.ts`.\n   */\n  // queryTypesOutputPath: './query-types.d.ts',\n  /**\n   * Optionally provide an input `schema-def.json` file to be used for GROQ\n   * codegen. This is the `schemaJsonOutputPath` by default.\n   */\n  // schemaJsonInputPath: './schema-def.json',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelrcPath: './babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelOptions: {\n  //   // ...\n  // },\n  /**\n   * Determines from where files are relative to. Defaults to where your\n   * sanity-codegen config was found.\n   */\n  // root: process.cwd(),\n  /**\n   * You can directly provide a normalized instead of using a schema-def.json.\n   * A normalized schema (result of the `schemaNormalizer`)\n   * @see schemaNormalizer\n   */\n  // normalizedSchema: undefined,\n  /**\n   * Optionally provide a function that generates the typescript type identifer\n   * from the sanity type name. Use this function to override the default and\n   * prevent naming collisions.\n   */\n  // generateTypeName: undefined,\n  /**\n   * This option is fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigPath: undefined,\n  /**\n   * This options is also fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigOptions: undefined,\n};\n\nexport default config;\n```\n\n<!-- toc -->\n* [@sanity-codegen/cli](#sanity-codegencli)\n* [Usage](#usage)\n* [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.31 linux-x64 node-v18.13.0\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n* [`sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`](#sanity-codegen-groq-codegen-groqcodegeninclude)\n* [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n* [`sanity-codegen schema-codegen [SANITYCONFIGPATH]`](#sanity-codegen-schema-codegen-sanityconfigpath)\n\n## `sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen groq-codegen [GROQCODEGENINCLUDE]\n\nARGUMENTS\n  GROQCODEGENINCLUDE  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --groqCodegenExclude=groqCodegenExclude\n      Specify a glob or a list of globs to specify which source files you want\n      to exclude from type generation.\n\n  --queryTypesOutputPath=queryTypesOutputPath\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `query-types.d.ts`.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonInputPath=schemaJsonInputPath\n      Optionally provide an input `schema-def.json` file to be used for GROQ\n      codegen. This is the `schemaJsonOutputPath` by default.\n```\n\n_See code: [lib/commands/groq-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.31/lib/commands/groq-codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.18/src/commands/help.ts)_\n\n## `sanity-codegen schema-codegen [SANITYCONFIGPATH]`\n\nloads a sanity schema and generates TypeScript types from it\n\n```\nUSAGE\n  $ sanity-codegen schema-codegen [SANITYCONFIGPATH]\n\nARGUMENTS\n  SANITYCONFIGPATH  Optionally provide the path to your sanity schema entry point. If not\n                    provided, the CLI will try to get this value from your sanity.json file.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --babelOptions=babelOptions\n      Optionally provide babel options inline in a JSON blob. This will be\n      passed into the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --babelrcPath=babelrcPath\n      Optionally provide a path to a .babelrc file. This will be passed into\n      the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonOutputPath=schemaJsonOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      JSON. The default value is ./schema-def.json.\n\n  --schemaTypesOutputPath=schemaTypesOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      types. The default value is ./schema-types.d.ts.\n```\n\n_See code: [lib/commands/schema-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.31/lib/commands/schema-codegen.js)_\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.31","_nodeVersion":"18.13.0","_npmVersion":"lerna/6.4.1/node@v18.13.0+x64 (linux)","dist":{"integrity":"sha512-kKp0MoZLYrIlKfX7iAl9U4VI7IufK6iPl0eNhdZH4lraAs4CuCpuGd3TCGDY8fhmcFqkQklKgP3GDIn9V55pZg==","shasum":"bd883bf989127d6d27b6b9d14a6b9f3ca7bddcbb","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.31.tgz","fileCount":58,"unpackedSize":51715,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHMLHUmR9EC+E05BBqUn0tje867kHunFoJ+2uHZbKm46AiAotmg6amfram9PMFEq9zJwC7DyigPSQ5kPbFBRJiBPhQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjyOseACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpFhw//ZafOOvJqoiAgrhG2mTiQF41r3F1yDhzp7d/yZsUOfoGB8BRs\r\nDhBJkd99NG0x32gUNsbdMr/h5fslswPi0ocx07I1bugU1hfJR0aPE4btU+p7\r\nHTJ/sJrfJ1FviEZsRVWad04CXuI/BAXQVFWwszO8N1vi4XioHogvS6K2IUlY\r\nIjuR/h6UczqMMu2l4BKh0kYHtvoc3dIO0cJfNiKXVF9pyeo0k5pQBx2gAZCl\r\nHSH+y/KavXtHUnNBio2COl2RbsriBlS+8bv/ukiydOzs/ZPsCkpsLhXpFdyQ\r\nTTIhrKskaS0Y72S9xAVIOysCircv3HrK/ss/gkOkz7dSIuEgvRsf+omjf7kY\r\nmQRJrcCEfxL+vqQotL8M0kF7gIUJgC4dvCisveGwVR7cAOv4+PgA4DHbF3xg\r\nhys9UHJpkeGUdrTcyArfo6qhWBWO9cXj0skaq6/hN2eKp/YlpJ82cr/NcyqM\r\nYiVZcRuao41jsbPeKWmCp/WfeIOtjcOiV+Sy1SpojpJHbnDEBIOxxCDbnkWk\r\noJ3q8k4tn8fuGiS4yDbXDeCBd4IqFFHS06yQBMU4sfICYc9gzdzP7KC8T6SJ\r\nR6jfKba7GVH4CgN8ClulrdWT0H/TrCPexg0SxXbLnhAF9x0PMZDO2Ges1pAI\r\nYNVQDRzzJmM66ANMLLOe37Lsz/mAf4Y0Hk4=\r\n=6xII\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.31_1674111774113_0.049511254831116736"},"_hasShrinkwrap":false},"1.0.0-alpha.32":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.32","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"./lib/index.js","types":"./lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"build":"./scripts/build","clean":"rm -rf node_modules && tsc -b --clean","lint":"eslint --ext .ts,.js ./src","prepack":"./scripts/prepack","postpack":"rm -f oclif.manifest.json","sort-package-json":"sort-package-json","test":"jest","version":"npx oclif-dev readme && git add README.md"},"dependencies":{"@babel/core":"^7.20.12","@oclif/command":"^1.8.21","@oclif/config":"^1.18.6","@oclif/plugin-help":"^5.2.0","@sanity-codegen/groq-codegen":"^1.0.0-alpha.32","@sanity-codegen/schema-codegen":"^1.0.0-alpha.32","@sanity-codegen/types":"^1.0.0-alpha.29","babel-merge":"^3.0.0","chalk":"^4.1.2","common-tags":"^1.8.2","ora":"^5.4.1","rxjs":"^7.8.0"},"devDependencies":{"@oclif/dev-cli":"^1.26.10","@types/common-tags":"^1.8.1","@types/node":"^18.11.18","globby":"~11.0.0"},"engines":{"node":">=12.22.0"},"publishConfig":{"access":"public"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"gitHead":"8029f466d0f21ebcfe4c217b2c37e56b31eb6dd2","readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  // sanityConfigPath: './sanity.config.ts',\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)), a list of globs, or a\n   * function that returns a list of paths to specify the source files you want\n   * to generate types from.\n   *\n   * If `groqCodegenInclude` is provided as a function then `groqCodegenExclude`\n   * will not be used.\n   */\n  groqCodegenInclude: ['./src/**/*.{js,jsx,ts,tsx}'],\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)) or a list of globs to\n   * specify which source files you want to exclude from type generation.\n   */\n  groqCodegenExclude: ['**/*.test.{js,ts,tsx}', '**/node_modules'],\n  /**\n   * Optionally provide a destination path to the resulting sanity schema types.\n   * The default value is `schema-types.d.ts`\n   */\n  // schemaTypesOutputPath: './schema-types.d.ts',\n  /**\n   * Optionally provide a destination path to the resulting sanity schema JSON.\n   * The default value is `schema-def.json`\n   */\n  // schemaJsonOutputPath: './schema-def.json',\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `query-types.d.ts`.\n   */\n  // queryTypesOutputPath: './query-types.d.ts',\n  /**\n   * Optionally provide an input `schema-def.json` file to be used for GROQ\n   * codegen. This is the `schemaJsonOutputPath` by default.\n   */\n  // schemaJsonInputPath: './schema-def.json',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelrcPath: './babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelOptions: {\n  //   // ...\n  // },\n  /**\n   * Determines from where files are relative to. Defaults to where your\n   * sanity-codegen config was found.\n   */\n  // root: process.cwd(),\n  /**\n   * You can directly provide a normalized instead of using a schema-def.json.\n   * A normalized schema (result of the `schemaNormalizer`)\n   * @see schemaNormalizer\n   */\n  // normalizedSchema: undefined,\n  /**\n   * Optionally provide a function that generates the typescript type identifer\n   * from the sanity type name. Use this function to override the default and\n   * prevent naming collisions.\n   */\n  // generateTypeName: undefined,\n  /**\n   * This option is fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigPath: undefined,\n  /**\n   * This options is also fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigOptions: undefined,\n};\n\nexport default config;\n```\n\n<!-- toc -->\n* [@sanity-codegen/cli](#sanity-codegencli)\n* [Usage](#usage)\n* [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.32 linux-x64 node-v18.13.0\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n* [`sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`](#sanity-codegen-groq-codegen-groqcodegeninclude)\n* [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n* [`sanity-codegen schema-codegen [SANITYCONFIGPATH]`](#sanity-codegen-schema-codegen-sanityconfigpath)\n\n## `sanity-codegen groq-codegen [GROQCODEGENINCLUDE]`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen groq-codegen [GROQCODEGENINCLUDE]\n\nARGUMENTS\n  GROQCODEGENINCLUDE  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --groqCodegenExclude=groqCodegenExclude\n      Specify a glob or a list of globs to specify which source files you want\n      to exclude from type generation.\n\n  --queryTypesOutputPath=queryTypesOutputPath\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `query-types.d.ts`.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonInputPath=schemaJsonInputPath\n      Optionally provide an input `schema-def.json` file to be used for GROQ\n      codegen. This is the `schemaJsonOutputPath` by default.\n```\n\n_See code: [lib/commands/groq-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.32/lib/commands/groq-codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.18/src/commands/help.ts)_\n\n## `sanity-codegen schema-codegen [SANITYCONFIGPATH]`\n\nloads a sanity schema and generates TypeScript types from it\n\n```\nUSAGE\n  $ sanity-codegen schema-codegen [SANITYCONFIGPATH]\n\nARGUMENTS\n  SANITYCONFIGPATH  Optionally provide the path to your sanity schema entry point. If not\n                    provided, the CLI will try to get this value from your sanity.json file.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --babelOptions=babelOptions\n      Optionally provide babel options inline in a JSON blob. This will be\n      passed into the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --babelrcPath=babelrcPath\n      Optionally provide a path to a .babelrc file. This will be passed into\n      the babel options of the schema executor.\n\n      `babelOptions` takes precedence over `babelrcPath`\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --schemaJsonOutputPath=schemaJsonOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      JSON. The default value is ./schema-def.json.\n\n  --schemaTypesOutputPath=schemaTypesOutputPath\n      Optionally provide a destination path to the resulting sanity schema\n      types. The default value is ./schema-types.d.ts.\n```\n\n_See code: [lib/commands/schema-codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.32/lib/commands/schema-codegen.js)_\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.32","_nodeVersion":"18.13.0","_npmVersion":"lerna/6.4.1/node@v18.13.0+x64 (linux)","dist":{"integrity":"sha512-aWf6IgOj+LnPTLmqPD9Em8WC7X1GGakpd7zcd4TRkSzfgsvQ6k1GAdAK0t4+LraAxPTvJYhD4AZHmJ3+rkXEGg==","shasum":"0cda9fbe3c4c89f296433cfb4b6b18ec80432f08","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.32.tgz","fileCount":58,"unpackedSize":51715,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhxJzqH5dLPyQyZz0y43wpmKto1HpdaGlEIlMF56L05QIhAL+fnZM+jZMgNToLbedRj1z/c3hYQj30K+1ADIi6UbXK"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjyO50ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpLjA/+IXgsvaQPVWGqzTXuJFevNUEZDJgQGoDnNh1CxfZKfSzy6wh0\r\n47Zsa5vsWWO5pRCDnttN/Hc0K/tMpxaJ9ITfmCh0w3tJNU/yOXyBnEnc27Au\r\nRfvOlKmlxgdTMAbLZmPzk1ffVGsPnkSWdv1mMCDwy7kVX7EVHJIZ5dVqm17H\r\nE7EadnW1DRJvNBGeBnsCAjNE4u7yOerl0n8hX0AAWqJRbqFlJONmqsbMBlKL\r\nKa1oM8yvnHMCG0i9Ry0M7zj4mFlV+esL6GM0ONNr2DGrAx6UmbSu6uQxau2W\r\nsROgqr3pbQpNosCqAYxMG6/7wrVpu3LGKO+Xy5c+uLUyX64vGtFNUB/nxNWQ\r\noQ2lCL1yrMhHg/39qW24GOfMm40O1JKdZWt/jPCQL7VjRPDdbxsQBzySS4LY\r\n73y3QxYiEQQfpDaSHNNZsbkkJsrcORfUveRbmJ8aZgDYecmh/EHTqDZ27tIy\r\nsSe5YMBLyNfPaDBJJWLJA/GRZOC+COXhD/vCqZSL/WAg8+L5mpjB/F8WtpQB\r\nEWeDE5AEl4N11FL8kVoYADna2tVAUfFSnlZSdmqTrYzwlX/bfQgIDV5oIDIM\r\n8UHJhauq3jEdI2hT/Wr/quuq1wSINV47aEpwXbrb09OSNbls+JWpCRSijWEX\r\nUkuc3xpYW6ShuFGWBWR4huVbZCLz1xi/k9M=\r\n=sKMZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.32_1674112628586_0.7867868490103962"},"_hasShrinkwrap":false},"1.0.0-alpha.34":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.34","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"./lib/index.js","types":"./lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"build":"./scripts/build","clean":"rm -rf node_modules && tsc -b --clean","lint":"eslint --ext .ts,.js ./src","prepack":"./scripts/prepack","postpack":"rm -f oclif.manifest.json","sort-package-json":"sort-package-json","test":"jest","version":"npx oclif-dev readme && git add README.md"},"dependencies":{"@babel/core":"^7.20.12","@oclif/command":"^1.8.21","@oclif/config":"^1.18.6","@oclif/plugin-help":"^5.2.0","@sanity-codegen/core":"^1.0.0-alpha.34","@sanity-codegen/extractor":"^1.0.0-alpha.34","@sanity-codegen/types":"^1.0.0-alpha.34","babel-merge":"^3.0.0","chalk":"^4.1.2","common-tags":"^1.8.2","ora":"^5.4.1","rxjs":"^7.8.0"},"devDependencies":{"@oclif/dev-cli":"^1.26.10","@types/common-tags":"^1.8.1","@types/node":"^18.11.18","globby":"~11.0.0"},"engines":{"node":">=12.22.0"},"publishConfig":{"access":"public"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"gitHead":"c1ead4fdc374542fa3db5ee00233c2c9cb27c5b9","readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  // sanityConfigPath: './sanity.config.ts',\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)), a list of globs, or a\n   * function that returns a list of paths to specify the source files you want\n   * to generate types from.\n   *\n   * If `groqCodegenInclude` is provided as a function then `groqCodegenExclude`\n   * will not be used.\n   */\n  groqCodegenInclude: ['./src/**/*.{js,jsx,ts,tsx}'],\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)) or a list of globs to\n   * specify which source files you want to exclude from type generation.\n   */\n  groqCodegenExclude: ['**/*.test.{js,ts,tsx}', '**/node_modules'],\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `query-types.d.ts`.\n   */\n  // typesOutputPath: './query-types.d.ts',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelrcPath: './babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelOptions: {\n  //   // ...\n  // },\n  /**\n   * Determines from where files are relative to. Defaults to where your\n   * sanity-codegen config was found.\n   */\n  // root: process.cwd(),\n  /**\n   * You can directly provide a normalized instead of using a schema-def.json.\n   * A normalized schema (result of the `schemaNormalizer`)\n   * @see schemaNormalizer\n   */\n  // normalizedSchema: undefined,\n  /**\n   * Optionally provide a function that generates the typescript type identifer\n   * from the sanity type name. Use this function to override the default and\n   * prevent naming collisions.\n   */\n  // generateTypeName: undefined,\n  /**\n   * This option is fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigPath: undefined,\n  /**\n   * This options is also fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigOptions: undefined,\n};\n\nexport default config;\n```\n\n<!-- toc -->\n* [@sanity-codegen/cli](#sanity-codegencli)\n* [Usage](#usage)\n* [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.34 linux-x64 node-v18.13.0\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n* [`sanity-codegen codegen [GROQCODEGENINCLUDE]`](#sanity-codegen-codegen-groqcodegeninclude)\n* [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n\n## `sanity-codegen codegen [GROQCODEGENINCLUDE]`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen codegen [GROQCODEGENINCLUDE]\n\nARGUMENTS\n  GROQCODEGENINCLUDE  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --groqCodegenExclude=groqCodegenExclude\n      Specify a glob or a list of globs to specify which source files you want\n      to exclude from type generation.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --sanityConfigPath=sanityConfigPath\n      Optionally provide an exact path for the CLI to look for a sanity\n      configuration file (sanity.config.[t|j]s). If not provided, the CLI will\n      try to default to the current working directory.\n\n      Any CLI flags passed with override the config options.\n\n  --typesOutputPath=typesOutputPath\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `sanity-codegen-types.d.ts`.\n```\n\n_See code: [lib/commands/codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.34/lib/commands/codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.18/src/commands/help.ts)_\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.34","_nodeVersion":"18.13.0","_npmVersion":"lerna/6.4.1/node@v18.13.0+x64 (linux)","dist":{"integrity":"sha512-ZgqpW9AMp0+7UOtgBAezV9DyIxt6/LLlljRlDv95XPk4vXykcV32GBCmwR9mL8EzfOrrXxY8UOKMWTYqSR0hGQ==","shasum":"69f9e9636fe90fbc295349a464aae275f3868a6c","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.34.tgz","fileCount":53,"unpackedSize":39541,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOegSX3OwdLt/QFd+mqGD8BWg20ybrbYf69COIFvu3DwIgG5DiyfAAX2LOBklcfgX/wi7qQ0uHaRPSNv+ZhOpBfh8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjyhxJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqw0Q//fcIbqKm9C+Q/OgxY8vz5jpZ+ZsqsBtvFmpgO5fzgXHV3oD1e\r\nCvliVYIwQ1sQ16uoqcDGJELTGIPNk6PKbxaWMsIFJyyyehEe6NZ7FfBiqRfI\r\nzyK+AihcOK029FVy73GnDca1qSaeeieSPu2SCf7ep521I7y6Ud2blzxI0xMt\r\nA5nFLqQK6wpioVxMCQxJlBEzSC2SnDz960NMGFwtGp7dtL2UFqxBeqtWW0qN\r\nEKCX/qOTTqh+IDPhvNhvs/90e/Ux7srRvoTEkHp3BMUAKfHwYnMQuIn98O6e\r\nAlIBQJA280b2so2U/JJd694imjrULctT1KQqeLL2tDxt0v3j+R0Gu2QURDoj\r\n0nuNJD5C+mn1QXApVj5NK86TW1HNYtKYSCE1VPtzU8KZVG8piuLBNhUQS41X\r\nOBCOEIMNJybodXo3fOGKsn/IAGbPHpLmu4YNsYoGITgkfSV0ID4wVZ0u587Z\r\npipURiO4I3xrVTGZ6m2KP4VlpWRlxgETvkFfolAeVaxjjKaYfSEKKOL2VCkO\r\ny+2jX2MVJ/mRNJhqsA1/4jc5x1yxIebSVUzm8Lnoc8itU+BG/zEXb/uCNj7f\r\n8IEc5cOv4UXGhcd0MPb6xH3O9y9NC/OQ2vEBHJCCi6RDIXBLmua8hYokmBu6\r\nKB/3Rzh6QenM2ejVGZi5Fsr/AcKU7Pihw6E=\r\n=L5BJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.34_1674189897481_0.7121305715017974"},"_hasShrinkwrap":false},"1.0.0-alpha.35":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.35","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"./lib/index.js","types":"./lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"build":"./scripts/build","clean":"rm -rf node_modules && tsc -b --clean","lint":"eslint --ext .ts,.js ./src","prepack":"./scripts/prepack","postpack":"rm -f oclif.manifest.json","sort-package-json":"sort-package-json","test":"jest","version":"npx oclif-dev readme && git add README.md"},"dependencies":{"@babel/core":"^7.20.12","@oclif/command":"^1.8.21","@oclif/config":"^1.18.6","@oclif/plugin-help":"^5.2.0","@sanity-codegen/core":"^1.0.0-alpha.35","@sanity-codegen/extractor":"^1.0.0-alpha.35","@sanity-codegen/types":"^1.0.0-alpha.34","babel-merge":"^3.0.0","chalk":"^4.1.2","common-tags":"^1.8.2","ora":"^5.4.1","rxjs":"^7.8.0"},"devDependencies":{"@oclif/dev-cli":"^1.26.10","@types/common-tags":"^1.8.1","@types/node":"^18.11.18","globby":"~11.0.0"},"engines":{"node":">=12.22.0"},"publishConfig":{"access":"public"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"gitHead":"ed51a5099c9c2c79911e747af89f4f59e64b7de2","readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  // sanityConfigPath: './sanity.config.ts',\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)), a list of globs, or a\n   * function that returns a list of paths to specify the source files you want\n   * to generate types from.\n   *\n   * If `include` is provided as a function then `exclude`\n   * will not be used.\n   */\n  // include: ['./src/**/*.{js,jsx,ts,tsx}'],\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)) or a list of globs to\n   * specify which source files you want to exclude from type generation.\n   */\n  // exclude: ['**/*.test.{js,ts,tsx}', '**/node_modules'],\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `query-types.d.ts`.\n   */\n  // output: './query-types.d.ts',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelrcPath: './babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelOptions: {\n  //   // ...\n  // },\n  /**\n   * Determines from where files are relative to. Defaults to where your\n   * sanity-codegen config was found.\n   */\n  // root: process.cwd(),\n  /**\n   * You can directly provide a normalized instead of using a schema-def.json.\n   * A normalized schema (result of the `schemaNormalizer`)\n   * @see schemaNormalizer\n   */\n  // normalizedSchema: undefined,\n  /**\n   * Optionally provide a function that generates the typescript type identifer\n   * from the sanity type name. Use this function to override the default and\n   * prevent naming collisions.\n   */\n  // generateTypeName: undefined,\n  /**\n   * This option is fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigPath: undefined,\n  /**\n   * This options is also fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigOptions: undefined,\n};\n\nexport default config;\n```\n\n<!-- toc -->\n* [@sanity-codegen/cli](#sanity-codegencli)\n* [Usage](#usage)\n* [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.35 linux-x64 node-v18.13.0\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n* [`sanity-codegen codegen [INCLUDE]`](#sanity-codegen-codegen-include)\n* [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n\n## `sanity-codegen codegen [INCLUDE]`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen codegen [INCLUDE]\n\nARGUMENTS\n  INCLUDE  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --exclude=exclude\n      Specify a glob or a list of globs to specify which source files you want\n      to exclude from type generation. Powered by globby.\n\n  --include=include\n      Specify a glob or a list of globs to specify which source files you want\n      to include from type generation. Powered by globby.\n\n  --output=output\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `sanity-codegen.d.ts`.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --sanityConfigPath=sanityConfigPath\n      Optionally provide an exact path for the CLI to look for a sanity\n      configuration file (sanity.config.[t|j]s). If not provided, the CLI will\n      try to default to the current working directory.\n\n      Any CLI flags passed with override the config options.\n```\n\n_See code: [lib/commands/codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.35/lib/commands/codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.18/src/commands/help.ts)_\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.35","_nodeVersion":"18.13.0","_npmVersion":"lerna/6.4.1/node@v18.13.0+x64 (linux)","dist":{"integrity":"sha512-otIKrzhweqsPzYjZvh3mVM4bj6Dxocx++/R+uABwQ/ITzZ/Z++FtIlSzBsNRf+tZ+XgwQUXrCwXmsDRBS+2QAw==","shasum":"3d11f4ebd4a1f56759571d6f430284e1ceb38d6d","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.35.tgz","fileCount":53,"unpackedSize":40126,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDc7YT4VvDRtNg+qkKiih9XkRNxMd83TIgE0mzSVVu7FQIgUbpigPydFzsQnQTIQJVXu9swIW1SRrxe4MPu0laNUqo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjywPCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqj+w/+IsK4TIf3zVeGmbbgjJkJ0B0CT5cDPGsDQEVYj/WpivOVFGDc\r\n/q3NH0u3wSaAXq9kY1Q+0njls1fC7u7XraemT5e6CD+OTC+drJMdvNHovU3m\r\nLELeDpXZ81dtv9tv6fom01Jve2hFuaE9Vg+oLnC9TBbQp/QPX4SsPlmXtzSq\r\nzA6oxCZRNM57iAzSeOqSWIpXT5WGcNhrXDrlDe/NL8dMQz/kkLKymOqtgaVz\r\nIT3ZqVTT/n+Gy4R9DC+JTZMc6r/BTHveN08Q1PKQQgwb2HKsagaKcqokA8OH\r\nQDt2+vjmBGmVjjp0+6H5KhYCd1SFbxZl/7CDAP3nt1ZAsKJrmK6ynxLbuW+b\r\nNOvzGwP2X1VT3HNLw7mv9nhEyxrSvK15s9OHKYioNam1AelZdySDRCkVGKfl\r\nmWAxUxTXtf//3HYfMmEj09dmeSZEeSAmirSgcNVT/BNwpkjRSlqZvoVHdjd0\r\nh/7ThTDIVKDehdVrfexJ4wlBisEs1dM5Eb/jaD+0RJ77S2grU6IVljN9GSYY\r\n84Q+pCxVdXxlAVoAxUhWEPSTsTG/D4uoiISkn6gnoLfw20rCi1L68RgR2cLo\r\nPVyZgRYm+OX9og6EwOoo1fAEoSPPGxgHAd3XA0P30RKZeqVRskX6Wgufs8Op\r\n2/y3Buvv+ZPD89IkjHbwlWh+RIYYBDbjqho=\r\n=+IIO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.35_1674249154498_0.6427955377491368"},"_hasShrinkwrap":false},"1.0.0-alpha.36":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.36","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"./lib/index.js","types":"./lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"build":"./scripts/build","clean":"rm -rf node_modules && tsc -b --clean","lint":"eslint --ext .ts,.js ./src","prepack":"./scripts/prepack","postpack":"rm -f oclif.manifest.json","sort-package-json":"sort-package-json","test":"jest","version":"npx oclif-dev readme && git add README.md"},"dependencies":{"@babel/core":"^7.20.12","@oclif/command":"^1.8.21","@oclif/config":"^1.18.6","@oclif/plugin-help":"^5.2.0","@sanity-codegen/core":"^1.0.0-alpha.36","@sanity-codegen/extractor":"^1.0.0-alpha.36","@sanity-codegen/types":"^1.0.0-alpha.34","babel-merge":"^3.0.0","chalk":"^4.1.2","common-tags":"^1.8.2","ora":"^5.4.1","rxjs":"^7.8.0"},"devDependencies":{"@oclif/dev-cli":"^1.26.10","@types/common-tags":"^1.8.1","@types/node":"^18.11.18","globby":"~11.0.0"},"engines":{"node":">=12.22.0"},"publishConfig":{"access":"public"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"gitHead":"09ab3b73ddebf5f96532cb64ffd82f461e80c167","readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  // sanityConfigPath: './sanity.config.ts',\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)), a list of globs, or a\n   * function that returns a list of paths to specify the source files you want\n   * to generate types from.\n   *\n   * If `include` is provided as a function then `exclude`\n   * will not be used.\n   */\n  // include: ['./src/**/*.{js,jsx,ts,tsx}'],\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)) or a list of globs to\n   * specify which source files you want to exclude from type generation.\n   */\n  // exclude: ['**/*.test.{js,ts,tsx}', '**/node_modules'],\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `query-types.d.ts`.\n   */\n  // output: './query-types.d.ts',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelrcPath: './babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelOptions: {\n  //   // ...\n  // },\n  /**\n   * Determines from where files are relative to. Defaults to where your\n   * sanity-codegen config was found.\n   */\n  // root: process.cwd(),\n  /**\n   * You can directly provide a normalized instead of using a schema-def.json.\n   * A normalized schema (result of the `schemaNormalizer`)\n   * @see schemaNormalizer\n   */\n  // normalizedSchema: undefined,\n  /**\n   * Optionally provide a function that generates the typescript type identifer\n   * from the sanity type name. Use this function to override the default and\n   * prevent naming collisions.\n   */\n  // generateTypeName: undefined,\n  /**\n   * This option is fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigPath: undefined,\n  /**\n   * This options is also fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigOptions: undefined,\n};\n\nexport default config;\n```\n\n<!-- toc -->\n* [@sanity-codegen/cli](#sanity-codegencli)\n* [Usage](#usage)\n* [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.36 linux-x64 node-v18.13.0\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n* [`sanity-codegen codegen [INCLUDE]`](#sanity-codegen-codegen-include)\n* [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n\n## `sanity-codegen codegen [INCLUDE]`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen codegen [INCLUDE]\n\nARGUMENTS\n  INCLUDE  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --exclude=exclude\n      Specify a glob or a list of globs to specify which source files you want\n      to exclude from type generation. Powered by globby.\n\n  --include=include\n      Specify a glob or a list of globs to specify which source files you want\n      to include from type generation. Powered by globby.\n\n  --output=output\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `sanity-codegen.d.ts`.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --sanityConfigPath=sanityConfigPath\n      Optionally provide an exact path for the CLI to look for a sanity\n      configuration file (sanity.config.[t|j]s). If not provided, the CLI will\n      try to default to the current working directory.\n\n      Any CLI flags passed with override the config options.\n```\n\n_See code: [lib/commands/codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.36/lib/commands/codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.18/src/commands/help.ts)_\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.36","_nodeVersion":"18.13.0","_npmVersion":"lerna/6.4.1/node@v18.13.0+x64 (linux)","dist":{"integrity":"sha512-IzQUhKtMmvAp4ncZmpN5fKnXsFp4nrr8OeDtZeIpafDQztZCuQP0G/12SReD8FAWKZOTM/afP/zdx5gi2EusXA==","shasum":"e3c2b856005fd617d968b8479a1e2e7ea416a704","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.36.tgz","fileCount":53,"unpackedSize":41587,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDweEX5SNAKJBYlLuarAwZx/+hOKC3cqQBgo2W6dQWAAIhAIAZs2LSq0WnzbzQPmYFSQHk7RXenx5/ix7IdFSKWg0s"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjywYIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrZTw//avUku//TrXGL4/xsiVI+noih3E1CrEh4A/z9UGQa+HDkwRjy\r\nZikV0MgW7iWNr0K3C8mVc7OC8ffShHSrsCWt+L/1lhJy9+lG7KJjVBa+jHqN\r\nQX8OFRj/6doZk7if9NOCjK1ypiPD7JR5A5t1CEerov+NPT8eFBeucJhSvJRJ\r\nG+qTtVmOPuUACbRa3uSLvWZOF3GpTxwTWuZ7SYCXQA4taWRdEzcE957Llfc0\r\nw02ImVez3XPa09SXrluBNqmlXGrECvHCZF+A1G7AEF/UqAKal204P06qgTtB\r\n9w3c5JSMxUD09nI77bs6pR4uyzBHSYVCtK6J3VgCz7ddFN3YfPDiTxTkwncA\r\nc9wQ9bYMdiL7PWkfGRKWCTRCum6SzNtkaSL5BddeEUprBTh76fpPxaxY5N7u\r\nua6y9i8k+IvHM00glZMEBb3rP9jnhIdOrzjPWVrlvnp5HloY+mF36yxStOrp\r\n0YX8a3glU2SWnslDUvLXW8BoC1A6TPyjx8sEsqPzBRPH1kWwtJdd5y/FGAg+\r\n0oB8aD+xIVKuSmM1l6+HjVnX8+cJtA8JPrRgbAn+7tjaNeF8hZWS0JJsoas4\r\n8KE/jHnE5c/tHp/HorYMct9NmStbCdKymBlG6fMiA8bAXK3e3vrqTuY7A6lt\r\nVdzhUmGA30Zdj0aohbOU9wng4LCAmck72pE=\r\n=fLLG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.36_1674249736456_0.23195382172212198"},"_hasShrinkwrap":false},"1.0.0-alpha.37":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.37","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"./lib/index.js","types":"./lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"build":"./scripts/build","clean":"rm -rf node_modules && tsc -b --clean","lint":"eslint --ext .ts,.js ./src","prepack":"./scripts/prepack","postpack":"rm -f oclif.manifest.json","sort-package-json":"sort-package-json","test":"jest","version":"npx oclif-dev readme && git add README.md"},"dependencies":{"@babel/core":"^7.20.12","@oclif/command":"^1.8.21","@oclif/config":"^1.18.6","@oclif/plugin-help":"^5.2.0","@sanity-codegen/core":"^1.0.0-alpha.36","@sanity-codegen/extractor":"^1.0.0-alpha.37","@sanity-codegen/types":"^1.0.0-alpha.34","babel-merge":"^3.0.0","chalk":"^4.1.2","common-tags":"^1.8.2","ora":"^5.4.1","rxjs":"^7.8.0"},"devDependencies":{"@oclif/dev-cli":"^1.26.10","@types/common-tags":"^1.8.1","@types/node":"^18.11.18","globby":"~11.0.0"},"engines":{"node":">=12.22.0"},"publishConfig":{"access":"public"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"gitHead":"ad7055bfb7c24d16c10b963d0b0c0b34d53333e1","readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  // sanityConfigPath: './sanity.config.ts',\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)), a list of globs, or a\n   * function that returns a list of paths to specify the source files you want\n   * to generate types from.\n   *\n   * If `include` is provided as a function then `exclude`\n   * will not be used.\n   */\n  // include: ['./src/**/*.{js,jsx,ts,tsx}'],\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)) or a list of globs to\n   * specify which source files you want to exclude from type generation.\n   */\n  // exclude: ['**/*.test.{js,ts,tsx}', '**/node_modules'],\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `query-types.d.ts`.\n   */\n  // output: './query-types.d.ts',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelrcPath: './babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelOptions: {\n  //   // ...\n  // },\n  /**\n   * Determines from where files are relative to. Defaults to where your\n   * sanity-codegen config was found.\n   */\n  // root: process.cwd(),\n  /**\n   * You can directly provide a normalized instead of using a schema-def.json.\n   * A normalized schema (result of the `schemaNormalizer`)\n   * @see schemaNormalizer\n   */\n  // normalizedSchema: undefined,\n  /**\n   * Optionally provide a function that generates the typescript type identifer\n   * from the sanity type name. Use this function to override the default and\n   * prevent naming collisions.\n   */\n  // generateTypeName: undefined,\n  /**\n   * This option is fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigPath: undefined,\n  /**\n   * This options is also fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigOptions: undefined,\n};\n\nexport default config;\n```\n\n<!-- toc -->\n* [@sanity-codegen/cli](#sanity-codegencli)\n* [Usage](#usage)\n* [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.37 linux-x64 node-v18.13.0\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n* [`sanity-codegen codegen [INCLUDE]`](#sanity-codegen-codegen-include)\n* [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n\n## `sanity-codegen codegen [INCLUDE]`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen codegen [INCLUDE]\n\nARGUMENTS\n  INCLUDE  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --exclude=exclude\n      Specify a glob or a list of globs to specify which source files you want\n      to exclude from type generation. Powered by globby.\n\n  --include=include\n      Specify a glob or a list of globs to specify which source files you want\n      to include from type generation. Powered by globby.\n\n  --output=output\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `sanity-codegen.d.ts`.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --sanityConfigPath=sanityConfigPath\n      Optionally provide an exact path for the CLI to look for a sanity\n      configuration file (sanity.config.[t|j]s). If not provided, the CLI will\n      try to default to the current working directory.\n\n      Any CLI flags passed with override the config options.\n```\n\n_See code: [lib/commands/codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.37/lib/commands/codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.18/src/commands/help.ts)_\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.37","_nodeVersion":"18.13.0","_npmVersion":"lerna/6.4.1/node@v18.13.0+x64 (linux)","dist":{"integrity":"sha512-LkdJs0h9EdHEwQtiV0uR7Qc4vRk0GG64Oxum7oAVZmB7uB7dcG9qO2B5UeUPZrRJ/b6DcmtuDaT01UBCQPfpcg==","shasum":"56014f30b784b6463514b59ae2d7f107266f23c6","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.37.tgz","fileCount":53,"unpackedSize":41587,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHJ9tDV122RNGR/o1h3PB3whuVUniCrkaKOK8yg70YNDAiBOViQBwNriIAt6D9JgFxdISKBX75o784HosiZp8krzDA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjzDfDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqJEw//fu/UO/YYMXUM0Xe9F/Ue/8QPOaTULNX6oyeDRktObLJbNiJB\r\ndwtazhff/TbTqsEqCPoje8HDbDJc1gFyslHxUUzUq2uoW8iItIJFt9kjwxwa\r\n/Z7Xz03Z4gqHcheBd/UcemcVmG8RcBdN+kf0PAH03CJ9bu8Iv5JfJsn1bKI6\r\nLzY+rVtuNg1ZuCEluJ7LEuOGlerErGWqKq/2ET7ZvWhGypCl7NyxnuZOk18v\r\noiy49zv8lfW8oc4ko2WrRpGQD+Ynb3vVCFOZuDevJJyLZ7bachIH4bSyw4ag\r\nuv3nh7xUItoIAunZtkqdq0TqxTANegaJow6njZiJo53keCQL+RXG5LCv8mB1\r\nAHrWEIbj6RSu4VLq6iAeIRLvpdX9nvDcM3qXNou3GJea+IrucyEu7NuMi89h\r\nCILA4z/KmUBb0V38ma9RQx5umIrlsMez37fKA4ljNMUd5YN7fLDTSIc85d/J\r\nh+JkXJE6e6/hIvsWL2Qn+oHSw/fHsznw9GzuHCG6pJhoZEZrPLMgbz7oVKH3\r\ntpsyrU/NAEwGEkt4G1TEqI/0oInemuUvcaG8n69HsknuJP1wNABljRce5gK2\r\nXb2GoLFD6HY4DqfuUzxzOlN9H0AWbzOl4Q2mjoCZ1TG2AIz+bDe7RnZmWGBr\r\nA2ccoi1PzuK1/DZENW1i/qP0Y36RcGYECyA=\r\n=Qw8m\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.37_1674328003423_0.29706621636736497"},"_hasShrinkwrap":false},"1.0.0-alpha.38":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.38","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"./lib/index.js","types":"./lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"build":"./scripts/build","clean":"rm -rf node_modules && tsc -b --clean","lint":"eslint --ext .ts,.js ./src","prepack":"./scripts/prepack","postpack":"rm -f oclif.manifest.json","sort-package-json":"sort-package-json","test":"jest","version":"npx oclif-dev readme && git add README.md"},"dependencies":{"@babel/core":"^7.20.12","@oclif/command":"^1.8.21","@oclif/config":"^1.18.6","@oclif/plugin-help":"^5.2.0","@sanity-codegen/core":"^1.0.0-alpha.38","@sanity-codegen/extractor":"^1.0.0-alpha.38","@sanity-codegen/types":"^1.0.0-alpha.38","babel-merge":"^3.0.0","chalk":"^4.1.2","common-tags":"^1.8.2","ora":"^5.4.1","rxjs":"^7.8.0"},"devDependencies":{"@oclif/dev-cli":"^1.26.10","@types/common-tags":"^1.8.1","@types/node":"^18.11.18","globby":"~11.0.0"},"engines":{"node":">=12.22.0"},"publishConfig":{"access":"public"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"gitHead":"97544931de62f8f0afaf73b2735817bf05d8e458","readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  // sanityConfigPath: './sanity.config.ts',\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)), a list of globs, or a\n   * function that returns a list of paths to specify the source files you want\n   * to generate types from.\n   *\n   * If `include` is provided as a function then `exclude`\n   * will not be used.\n   */\n  // include: ['./src/**/*.{js,jsx,ts,tsx}'],\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)) or a list of globs to\n   * specify which source files you want to exclude from type generation.\n   */\n  // exclude: ['**/*.test.{js,ts,tsx}', '**/node_modules'],\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `query-types.d.ts`.\n   */\n  // output: './query-types.d.ts',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelrcPath: './babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelOptions: {\n  //   // ...\n  // },\n  /**\n   * Determines from where files are relative to. Defaults to where your\n   * sanity-codegen config was found.\n   */\n  // root: process.cwd(),\n  /**\n   * You can directly provide a normalized instead of using a schema-def.json.\n   * A normalized schema (result of the `schemaNormalizer`)\n   * @see schemaNormalizer\n   */\n  // normalizedSchema: undefined,\n  /**\n   * Optionally provide a function that generates the typescript type identifer\n   * from the sanity type name. Use this function to override the default and\n   * prevent naming collisions.\n   */\n  // generateTypeName: undefined,\n  /**\n   * This option is fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigPath: undefined,\n  /**\n   * This options is also fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigOptions: undefined,\n};\n\nexport default config;\n```\n\n<!-- toc -->\n* [@sanity-codegen/cli](#sanity-codegencli)\n* [Usage](#usage)\n* [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.38 linux-x64 node-v18.13.0\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n* [`sanity-codegen codegen [INCLUDE]`](#sanity-codegen-codegen-include)\n* [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n\n## `sanity-codegen codegen [INCLUDE]`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen codegen [INCLUDE]\n\nARGUMENTS\n  INCLUDE  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --exclude=exclude\n      Specify a glob or a list of globs to specify which source files you want\n      to exclude from type generation. Powered by globby.\n\n  --include=include\n      Specify a glob or a list of globs to specify which source files you want\n      to include from type generation. Powered by globby.\n\n  --output=output\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `sanity-codegen.d.ts`.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --sanityConfigPath=sanityConfigPath\n      Optionally provide an exact path for the CLI to look for a sanity\n      configuration file (sanity.config.[t|j]s). If not provided, the CLI will\n      try to default to the current working directory.\n\n      Any CLI flags passed with override the config options.\n```\n\n_See code: [lib/commands/codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.38/lib/commands/codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.18/src/commands/help.ts)_\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.38","_nodeVersion":"18.13.0","_npmVersion":"lerna/6.4.1/node@v18.13.0+x64 (linux)","dist":{"integrity":"sha512-a5lpX1aV32O5Oj8jbyTZVHtijT8cZVvhHS2P48WblznI+qJWgjbzIBaaCFyKLCvucdxa9lTZuCFgf9Z9jibywQ==","shasum":"9b175d8e1f02a067c771aaa943ebb8316415ab55","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.38.tgz","fileCount":53,"unpackedSize":41587,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCkCUlP7hFZ+DymOSf9asxTX2F9mHLlv1A3AV1J6V5IBwIhAIcZVajfyB9htPD6YvKkStXawVf9sVF2YvUVB2NcoXAn"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjzEB5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoL8A/8CwI7AjiBsDeEjtQnKnM8gLchkNdK2mMSV8u2trKCghLTvfsQ\r\njF7xMzNA6d7q8FDBZjowBaM2w4BPrmaArmfAUVO0As+TEj0T0ig+o75EJpf/\r\nRF/yxGn1Q/GWXRy7OJJbkoSVu9SToax1qw3pfQXk7IjAV+jlNyOHB9pJqTpS\r\nCt7FjRX6MiNfDRJQol/h8DeaEW72J6NeblMK61OFoBbcWzqFGGw3ZKkTrZCZ\r\nuLOXn5YfohxGQS9JpvKAkPojvQeP2R4MN/HT6EPkCoxBtfBBdDsZchTnH0zm\r\nV6Vsxne6h6wyMEe56zQWCWQ30u4a2oNiSWSVr7rFVwofvMsqR+Q1C8Xrrqnp\r\nG4YfbqURDUDElDq83OeTNuEEe9/DrYJVhuD+d1G7F5nyxLgNiLnXm7lV+byv\r\nqhrgqs7t+93AYethuCWBpld6ubz+MCDRF4SQAuoD1cU9442fJ8cx/2E4LGJ/\r\nYVpS1eZRg2DypVgoBeKqd63Mfg8kNlyNdHAlo56H0lGsmejs+0I+oJvQz18g\r\njBEjeJY/XbLDsKvoi2fleBBMYxvM9NElWyVjF8awUGvyLWzxKWawF2oDXaAB\r\nUm67rYGWKYV7jRDTyofkTo/QQT8yNlt0U2n+Qftkz3hb1rrKF60z6X/9OU2h\r\n0mSJb7sxsT8fMgCMiJ9L8rLOiD1YQdBFGcQ=\r\n=oOQN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.38_1674330233142_0.373010661118202"},"_hasShrinkwrap":false},"1.0.0-alpha.39":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.39","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"./lib/index.js","types":"./lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"build":"./scripts/build","clean":"rm -rf node_modules && tsc -b --clean","lint":"eslint --ext .ts,.js ./src","prepack":"./scripts/prepack","postpack":"rm -f oclif.manifest.json","sort-package-json":"sort-package-json","test":"jest","version":"npx oclif-dev readme && git add README.md"},"dependencies":{"@babel/core":"^7.20.12","@oclif/command":"^1.8.21","@oclif/config":"^1.18.6","@oclif/plugin-help":"^5.2.0","@sanity-codegen/core":"^1.0.0-alpha.38","@sanity-codegen/extractor":"^1.0.0-alpha.39","@sanity-codegen/types":"^1.0.0-alpha.38","babel-merge":"^3.0.0","chalk":"^4.1.2","common-tags":"^1.8.2","ora":"^5.4.1","rxjs":"^7.8.0"},"devDependencies":{"@oclif/dev-cli":"^1.26.10","@types/common-tags":"^1.8.1","@types/node":"^18.11.18","globby":"~11.0.0"},"engines":{"node":">=12.22.0"},"publishConfig":{"access":"public"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"gitHead":"5969114456e38b5f1eb91eaab25e18fdd3bfaaf0","readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  // sanityConfigPath: './sanity.config.ts',\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)), a list of globs, or a\n   * function that returns a list of paths to specify the source files you want\n   * to generate types from.\n   *\n   * If `include` is provided as a function then `exclude`\n   * will not be used.\n   */\n  // include: ['./src/**/*.{js,jsx,ts,tsx}'],\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)) or a list of globs to\n   * specify which source files you want to exclude from type generation.\n   */\n  // exclude: ['**/*.test.{js,ts,tsx}', '**/node_modules'],\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `query-types.d.ts`.\n   */\n  // output: './query-types.d.ts',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelrcPath: './babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelOptions: {\n  //   // ...\n  // },\n  /**\n   * Determines from where files are relative to. Defaults to where your\n   * sanity-codegen config was found.\n   */\n  // root: process.cwd(),\n  /**\n   * You can directly provide a normalized instead of using a schema-def.json.\n   * A normalized schema (result of the `schemaNormalizer`)\n   * @see schemaNormalizer\n   */\n  // normalizedSchema: undefined,\n  /**\n   * Optionally provide a function that generates the typescript type identifer\n   * from the sanity type name. Use this function to override the default and\n   * prevent naming collisions.\n   */\n  // generateTypeName: undefined,\n  /**\n   * This option is fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigPath: undefined,\n  /**\n   * This options is also fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigOptions: undefined,\n};\n\nexport default config;\n```\n\n<!-- toc -->\n* [@sanity-codegen/cli](#sanity-codegencli)\n* [Usage](#usage)\n* [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.39 linux-x64 node-v18.13.0\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n* [`sanity-codegen codegen [INCLUDE]`](#sanity-codegen-codegen-include)\n* [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n\n## `sanity-codegen codegen [INCLUDE]`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen codegen [INCLUDE]\n\nARGUMENTS\n  INCLUDE  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --exclude=exclude\n      Specify a glob or a list of globs to specify which source files you want\n      to exclude from type generation. Powered by globby.\n\n  --include=include\n      Specify a glob or a list of globs to specify which source files you want\n      to include from type generation. Powered by globby.\n\n  --output=output\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `sanity-codegen.d.ts`.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --sanityConfigPath=sanityConfigPath\n      Optionally provide an exact path for the CLI to look for a sanity\n      configuration file (sanity.config.[t|j]s). If not provided, the CLI will\n      try to default to the current working directory.\n\n      Any CLI flags passed with override the config options.\n```\n\n_See code: [lib/commands/codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.39/lib/commands/codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.18/src/commands/help.ts)_\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.39","_nodeVersion":"18.13.0","_npmVersion":"lerna/6.4.1/node@v18.13.0+x64 (linux)","dist":{"integrity":"sha512-RLRLlwoeFdpc73jU/GeeA1KWFi15B69oEYtp8vRa8wLL3q5c+Cwf7GSozwqniJVasMSJ4OKSbTJ4EX92ympKXw==","shasum":"974d5fe0c2660228b40d3b09e2e2236316b36dfa","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.39.tgz","fileCount":53,"unpackedSize":41587,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrHkvCG87enXZgB4yShWDhEZHX8puk7x0AY0PaKSgmqwIgeMiv+eyDyoLOY2vRhk+dtTbmxZaHzwd2s9lN0gJDfnQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjzEOrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpEcg/+JPaGD8SvjTl+jktqsPFIl9ShaoqgRoHcMnhXXRZvLQuxNZhR\r\ntBVyxql7aIG3ln+HT+ZxDWlz21GEbIrRZjwKEhU9v4px06uCiGV9gh8ctGL1\r\nV10sOBLPhFtCHLc5+fsqr8dtjrVdAC7CBBlrgD4Wr869IpwDsl96Nlp5lIom\r\nd8P1QPmoR/ZNHLgMlPSMywJ1kF8H2wMBQjFhO9etdFYs4G4tbqZQcblUGSqy\r\n/aPxp1TlqAlXpKcM7iLj8pp1eUR4lewoU9nsMtx9zP9bgNzGcWPv0/bUvlMr\r\nuJMu0COvlS+E8U1DtkN8C98/oalw9I71ukOXVG4800unqd193u1lyukuYoLe\r\nFnRetXmOLAUS0uWzU7YPZLlJQj+MMeFOmRSAQXTOvzlO1LWz3i2dNZJmTyGd\r\nP0VI7Eco99T4YaVow0WxQ/jf5QSA3BgIHGdKxjLNxrmlLs/wsKCYCbt8kf6z\r\n21SbRT2VKoYySBQURdytcO8sSagTSaBnMgAQTXIpxd9v4rEX4j4TWb8sec0t\r\nyUYQ+OsFbHXk/PWHcySLFvfW2pw6i/aTvUePHfxgNLVEIYO/9hdvU1CbSUku\r\nCsmyfc2QcKyTsVflvg/NSxZYgi+U2lQ0ogI9SJq5gLpBJ2glH0sFiim8Hg7k\r\nLu7hnCKPr9qZtq3WyK3datNaypwHBb7CQTw=\r\n=YHlX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.39_1674331050906_0.14520655393688098"},"_hasShrinkwrap":false},"1.0.0-alpha.40":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.40","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"./lib/index.js","types":"./lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"build":"./scripts/build","clean":"rm -rf node_modules && tsc -b --clean","lint":"eslint --ext .ts,.js ./src","prepack":"./scripts/prepack","postpack":"rm -f oclif.manifest.json","sort-package-json":"sort-package-json","test":"jest","version":"npx oclif-dev readme && git add README.md"},"dependencies":{"@babel/core":"^7.20.12","@oclif/command":"^1.8.21","@oclif/config":"^1.18.6","@oclif/plugin-help":"^5.2.0","@sanity-codegen/core":"^1.0.0-alpha.38","@sanity-codegen/extractor":"^1.0.0-alpha.39","@sanity-codegen/types":"^1.0.0-alpha.38","babel-merge":"^3.0.0","chalk":"^4.1.2","common-tags":"^1.8.2","ora":"^5.4.1","rxjs":"^7.8.0"},"devDependencies":{"@oclif/dev-cli":"^1.26.10","@types/common-tags":"^1.8.1","@types/node":"^18.11.18","globby":"~11.0.0"},"engines":{"node":">=12.22.0"},"publishConfig":{"access":"public"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"gitHead":"26f46d1f7bf3ded480d555594f468fb3c909ffa0","readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  // sanityConfigPath: './sanity.config.ts',\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)), a list of globs, or a\n   * function that returns a list of paths to specify the source files you want\n   * to generate types from.\n   *\n   * If `include` is provided as a function then `exclude`\n   * will not be used.\n   */\n  // include: ['./src/**/*.{js,jsx,ts,tsx}'],\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)) or a list of globs to\n   * specify which source files you want to exclude from type generation.\n   */\n  // exclude: ['**/*.test.{js,ts,tsx}', '**/node_modules'],\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `sanity-codegen.d.ts`.\n   */\n  // output: './sanity-codegen.d.ts',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelrcPath: './babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelOptions: {\n  //   // ...\n  // },\n  /**\n   * Determines from where files are relative to. Defaults to where your\n   * sanity-codegen config was found.\n   */\n  // root: process.cwd(),\n  /**\n   * You can directly provide a normalized instead of using a schema-def.json.\n   * A normalized schema (result of the `schemaNormalizer`)\n   * @see schemaNormalizer\n   */\n  // normalizedSchema: undefined,\n  /**\n   * Optionally provide a function that generates the typescript type identifer\n   * from the sanity type name. Use this function to override the default and\n   * prevent naming collisions.\n   */\n  // generateTypeName: undefined,\n  /**\n   * This option is fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigPath: undefined,\n  /**\n   * This options is also fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigOptions: undefined,\n};\n\nexport default config;\n```\n\n<!-- toc -->\n* [@sanity-codegen/cli](#sanity-codegencli)\n* [Usage](#usage)\n* [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.40 linux-x64 node-v18.13.0\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n* [`sanity-codegen codegen [INCLUDE]`](#sanity-codegen-codegen-include)\n* [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n\n## `sanity-codegen codegen [INCLUDE]`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen codegen [INCLUDE]\n\nARGUMENTS\n  INCLUDE  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --exclude=exclude\n      Specify a glob or a list of globs to specify which source files you want\n      to exclude from type generation. Powered by globby.\n\n  --include=include\n      Specify a glob or a list of globs to specify which source files you want\n      to include from type generation. Powered by globby.\n\n  --output=output\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `sanity-codegen.d.ts`.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --sanityConfigPath=sanityConfigPath\n      Optionally provide an exact path for the CLI to look for a sanity\n      configuration file (sanity.config.[t|j]s). If not provided, the CLI will\n      try to default to the current working directory.\n\n      Any CLI flags passed with override the config options.\n```\n\n_See code: [lib/commands/codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.40/lib/commands/codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.18/src/commands/help.ts)_\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.40","_nodeVersion":"18.13.0","_npmVersion":"lerna/6.4.1/node@v18.13.0+x64 (linux)","dist":{"integrity":"sha512-/9qVZPZVQtN+z6dgUIyGMzNrlqfnzSR+saTIZJA9eVb1ykgfe2FcIfjuelNCsMqgzYGppCzSpF+E1WLqsbBT8Q==","shasum":"eb5c32a52108a67ba6c32f07c4fa8025ab57baec","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.40.tgz","fileCount":53,"unpackedSize":41593,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCz6CWNnkTsJbdvVd+HBK635o6s+iFgyjSMD3z/cBu0PAIhAM605JI8Qmjlhkz5IQZwwgDoyAi364S4jLZPs9WZNA01"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjzEP7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoong/+J/SuROIx6eVX5ijVWUjBIeypbonlVzFjCbMrLZBG1xS67w//\r\nIsSsRrf1q645enJvzNtcE2fI6qXjG3v6i2meo+ZVi4KxpzTcBHVACpx/W6hT\r\nR7Rc604aso5CGpLh8/a7arqAAMeC8TyjdTLG0+vi6/TzMm+nmpNL3m6B/dtg\r\nWqi/SMU9WC8+A/eZOLEw9fU/lJ3cdLQBBKqcIAp3eYNww2QyiqqG9ZA9NiUU\r\nInzyG8Qdb7TpZdXx2iA35CMjsyuQWx3RQQbPCc7iebqAYUE1o5ZAEE8Pbiw2\r\nwtHyfXtUcPSlIb3nxPok9MAmoiC2jPlKQIEks/2nb7+LFv//yIwRFwHko6SJ\r\nVY2fi5l2GrfzWIol71XMiWgdZexbKClNJU4W069Kc9eyQyaWrYHrrnHJ67hC\r\nLT1mhbyakpKgHrUS/NodTVYPWB9K9LaCqevrP4w01CcgnpLTezMb/euR+bNw\r\ncNMik3fNRYlLU1qnyKbLooLYUlhYpMR7PBF5cRfkA6ebWPqSSAl2XGnokCHW\r\nBU472u29Fv4Oj9GKf+dDqm8yYpAc3zc177QsMiaC5LjUB7VZFA5wQPyUp4n7\r\ncp2DbELGvxve2fA5UurWC1oqWkdXIYqE8o3lU+2U17g0AnAeuAopvrjyNKrg\r\n2DINCn2rCV0rogPtyv64n82lQTbBJbciXl4=\r\n=9dHe\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.40_1674331131555_0.08184516897015293"},"_hasShrinkwrap":false},"1.0.0-alpha.41":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.41","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"./lib/index.js","types":"./lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"build":"./scripts/build","clean":"rm -rf node_modules && tsc -b --clean","lint":"eslint --ext .ts,.js ./src","prepack":"./scripts/prepack","postpack":"rm -f oclif.manifest.json","sort-package-json":"sort-package-json","test":"jest","version":"npx oclif-dev readme && git add README.md"},"dependencies":{"@babel/core":"^7.20.12","@oclif/command":"^1.8.21","@oclif/config":"^1.18.6","@oclif/plugin-help":"^5.2.0","@sanity-codegen/core":"^1.0.0-alpha.41","@sanity-codegen/extractor":"^1.0.0-alpha.41","@sanity-codegen/types":"^1.0.0-alpha.41","babel-merge":"^3.0.0","chalk":"^4.1.2","common-tags":"^1.8.2","ora":"^5.4.1","rxjs":"^7.8.0"},"devDependencies":{"@oclif/dev-cli":"^1.26.10","@types/common-tags":"^1.8.1","@types/node":"^18.11.18","globby":"~11.0.0"},"engines":{"node":">=12.22.0"},"publishConfig":{"access":"public"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"gitHead":"0b8b40df0c9fb2799aa2ce03b08049111eeace87","readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  // sanityConfigPath: './sanity.config.ts',\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)), a list of globs, or a\n   * function that returns a list of paths to specify the source files you want\n   * to generate types from.\n   *\n   * If `include` is provided as a function then `exclude`\n   * will not be used.\n   */\n  // include: ['./src/**/*.{js,jsx,ts,tsx}'],\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)) or a list of globs to\n   * specify which source files you want to exclude from type generation.\n   */\n  // exclude: ['**/*.test.{js,ts,tsx}', '**/node_modules'],\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `sanity-codegen.d.ts`.\n   */\n  // output: './sanity-codegen.d.ts',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelrcPath: './babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelOptions: {\n  //   // ...\n  // },\n  /**\n   * Determines from where files are relative to. Defaults to where your\n   * sanity-codegen config was found.\n   */\n  // root: process.cwd(),\n  /**\n   * An array of extracted and normalized schema results from the\n   * `normalizeSchema` function\n   */\n  // normalizedSchemas: undefined,\n  /**\n   * Ignores workspace schemas and excludes them from codegen. Useful if you\n   * have a workspace that mirrors another one in schema (e.g. for staging env)\n   */\n  // ignoreSchemas: ['staging'],\n  /**\n   * Optionally provide a function that generates the typescript type identifer\n   * from the sanity type name. Use this function to override the default and\n   * prevent naming collisions.\n   */\n  // generateTypeName: undefined,\n  /**\n   * This option is fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigPath: undefined,\n  /**\n   * This options is also fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigOptions: undefined,\n};\n\nexport default config;\n```\n\n<!-- toc -->\n* [@sanity-codegen/cli](#sanity-codegencli)\n* [Usage](#usage)\n* [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.41 linux-x64 node-v18.13.0\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n* [`sanity-codegen codegen [INCLUDE]`](#sanity-codegen-codegen-include)\n* [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n\n## `sanity-codegen codegen [INCLUDE]`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen codegen [INCLUDE]\n\nARGUMENTS\n  INCLUDE  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --exclude=exclude\n      Specify a glob or a list of globs to specify which source files you want\n      to exclude from type generation. Powered by globby.\n\n  --ignoreSchemas=ignoreSchemas\n      A common separated list that tells the codegen to ignores workspace\n      schemas and exclude them from codegen. Useful if you have a workspace\n      that mirrors another one in schema (e.g. staging env).\n\n  --include=include\n      Specify a glob or a list of globs to specify which source files you want\n      to include from type generation. Powered by globby.\n\n  --output=output\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `sanity-codegen.d.ts`.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --sanityConfigPath=sanityConfigPath\n      Optionally provide an exact path for the CLI to look for a sanity\n      configuration file (sanity.config.[t|j]s). If not provided, the CLI will\n      try to default to the current working directory.\n\n      Any CLI flags passed with override the config options.\n```\n\n_See code: [lib/commands/codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.41/lib/commands/codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.18/src/commands/help.ts)_\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.41","_nodeVersion":"18.13.0","_npmVersion":"lerna/6.4.1/node@v18.13.0+x64 (linux)","dist":{"integrity":"sha512-kf5dfVILdOQFNB4VJ+fXwgEQv9PHwl/Z9IYXPzKDvN47NGHf6OUOJt0bqZvGHJ8McDTDk5A/WEyTgrApJCw4+g==","shasum":"35b7052f06b872448c0128d55ebe30b648cb989b","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.41.tgz","fileCount":53,"unpackedSize":42895,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHNvu6zjwNEeBVeqI2x6TMIhqtDrVbyr5tn06TCBq5NEAiEA5LogBHTy6po5SNbngLR3Mj2nTMrD1jsLHUr6DdnFrp8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjzwSuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqTyw//V4YgISr+ueWLIFNyRWz4FAncxThfv5w6sY7xWJLU6ecmJvYS\r\nzME8Eifmid+U1Sk57k4xmlMfZBgwp9a585ni0nuGCRIf1R/1SRN24o/zi81d\r\nwQHXrw7DIJA4iqyQ0YhcAX9qn4xjHJ5LvCRm7hQKKj4w+Tbp9AUtIyNYw5g+\r\nyzqgUnEpG9aLAPoNK+wDZNPWAWfGHUP4tVjgsjBOt8edKeKDEcGfDEj1GODh\r\nZYjiEja9wOMNnQGEij7BJgu3ajZ0ysjnYLk5CIVfSmbNrQar91D19CIpOZis\r\n+/dtHC0vUM5ClhZ7k4W3KJ3/AN3Ikku+X/Y0ixrWoDb6FPtRkkH4aRav4sWG\r\n+VGkbFumuG59GB9gbrRuxVSOKIdSDrQb0CQTd0i55KFex9+rSdnHhT5/l9JJ\r\nFNEupFFhY0kGouFCPKtlrPXDZlSAaJE4wh+mSsyqEnvSIQGL5O3u9kWe0hlb\r\nDY31KHSuR7NRCFUfAW4B0+XKvFsjRpoOA/XFqLZFPz5GQamAQWBGMkY93bgH\r\nslZvpyGJVw1PC0Nv+jPMlfRmEAQqh2blsbJ9hETNcqoNz/zPp5OGMhKbHH7C\r\ntIrmJVR2MKOdMw0LThNY5/VZRJEXG+8sg+9VtYZcEsbgeO+l+Ju6AI2aCq73\r\nAYbK6l0Y1HT/VkFSLyJd+bdjpSOpBHBpviQ=\r\n=NoG7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.41_1674511534720_0.43333772458016995"},"_hasShrinkwrap":false},"1.0.0-alpha.42":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.42","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"./lib/index.js","types":"./lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"build":"./scripts/build","clean":"rm -rf node_modules && tsc -b --clean","lint":"eslint --ext .ts,.js ./src","prepack":"./scripts/prepack","postpack":"rm -f oclif.manifest.json","sort-package-json":"sort-package-json","test":"jest","version":"npx oclif-dev readme && git add README.md"},"dependencies":{"@babel/core":"^7.20.12","@oclif/command":"^1.8.21","@oclif/config":"^1.18.6","@oclif/plugin-help":"^5.2.0","@sanity-codegen/core":"^1.0.0-alpha.42","@sanity-codegen/extractor":"^1.0.0-alpha.42","@sanity-codegen/types":"^1.0.0-alpha.42","babel-merge":"^3.0.0","chalk":"^4.1.2","common-tags":"^1.8.2","dotenv":"^16.0.3","dotenv-expand":"^10.0.0","ora":"^5.4.1","rxjs":"^7.8.0"},"devDependencies":{"@oclif/dev-cli":"^1.26.10","@types/common-tags":"^1.8.1","@types/node":"^18.11.18","globby":"~11.0.0"},"engines":{"node":">=12.22.0"},"publishConfig":{"access":"public"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"gitHead":"66206d42d307cd6e9046082fee51c0ed5ee69091","readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  // sanityConfigPath: './sanity.config.ts',\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)), a list of globs, or a\n   * function that returns a list of paths to specify the source files you want\n   * to generate types from.\n   *\n   * If `include` is provided as a function then `exclude`\n   * will not be used.\n   */\n  // include: ['./src/**/*.{js,jsx,ts,tsx}'],\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)) or a list of globs to\n   * specify which source files you want to exclude from type generation.\n   */\n  // exclude: ['**/*.test.{js,ts,tsx}', '**/node_modules'],\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `sanity-codegen.d.ts`.\n   */\n  // output: './sanity-codegen.d.ts',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelrcPath: './babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelOptions: {\n  //   // ...\n  // },\n  /**\n   * Determines from where files are relative to. Defaults to where your\n   * sanity-codegen config was found.\n   */\n  // root: process.cwd(),\n  /**\n   * An array of extracted and normalized schema results from the\n   * `normalizeSchema` function\n   */\n  // normalizedSchemas: undefined,\n  /**\n   * Ignores workspace schemas and excludes them from codegen. Useful if you\n   * have a workspace that mirrors another one in schema (e.g. for staging env)\n   */\n  // ignoreSchemas: ['staging'],\n  /**\n   * Optionally provide a function that generates the typescript type identifer\n   * from the sanity type name. Use this function to override the default and\n   * prevent naming collisions.\n   */\n  // generateTypeName: undefined,\n  /**\n   * This option is fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigPath: undefined,\n  /**\n   * This options is also fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigOptions: undefined,\n};\n\nexport default config;\n```\n\nAdditionally, the CLI will load .env files using a similar method to the Sanity CLI (via Vite). [See here for more info.](https://www.sanity.io/docs/environment-variables)\n\n<!-- toc -->\n* [@sanity-codegen/cli](#sanity-codegencli)\n* [Usage](#usage)\n* [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.42 linux-x64 node-v18.13.0\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n* [`sanity-codegen codegen [INCLUDE]`](#sanity-codegen-codegen-include)\n* [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n\n## `sanity-codegen codegen [INCLUDE]`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen codegen [INCLUDE]\n\nARGUMENTS\n  INCLUDE  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --exclude=exclude\n      Specify a glob or a list of globs to specify which source files you want\n      to exclude from type generation. Powered by globby.\n\n  --ignoreSchemas=ignoreSchemas\n      A common separated list that tells the codegen to ignores workspace\n      schemas and exclude them from codegen. Useful if you have a workspace\n      that mirrors another one in schema (e.g. staging env).\n\n  --include=include\n      Specify a glob or a list of globs to specify which source files you want\n      to include from type generation. Powered by globby.\n\n  --output=output\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `sanity-codegen.d.ts`.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --sanityConfigPath=sanityConfigPath\n      Optionally provide an exact path for the CLI to look for a sanity\n      configuration file (sanity.config.[t|j]s). If not provided, the CLI will\n      try to default to the current working directory.\n\n      Any CLI flags passed with override the config options.\n```\n\n_See code: [lib/commands/codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.42/lib/commands/codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.18/src/commands/help.ts)_\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.42","_nodeVersion":"18.13.0","_npmVersion":"lerna/6.4.1/node@v18.13.0+x64 (linux)","dist":{"integrity":"sha512-bi76zXYaDFlkqTocwmKST5N77TTLbqAKt9p81vdtAuqN7iYfHWjkDKikIXhJ6Mpa2xuqRxYXt8MKfw/8fVBTEg==","shasum":"40eb25b666dcbaddd5a678b72364209fce033eaf","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.42.tgz","fileCount":58,"unpackedSize":46112,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHd1hINMy8D+HkFwqWw/JCHb+VzlRE9n7JLLAOaiKLsTAiAYBubJvNfA+UIOt0CRWEJDU+WGWXt7sZaFkHyr6tX1mQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj1E+0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpL7Q//d6wQ+SqLmoF6+MHss+bc5poAskbPPZvRkOGz2ShcpyI91AVa\r\nx3OI9mKMCecKqnXc40ew33eOFvCWVG+r7mRvvvHDoDx860j5tlIxBjaKqjhk\r\nJdaInpj3dJbb4vrAWhlSG6MILZmLVGikecwVuKKpeHcVPk8lDx3DDo0AXxI5\r\nQAAbw+OvTsP9VeqeJdicEnzdoUt7BhXra5Pl2xgxpeqfBughaugXjiD3djVi\r\nMBO05Gaor9HC+DOAr5OTvzogPMrYo1FZbSCWKRUCM5sgrXyvhbjnLaOos6L3\r\nrMYr2yHGFniDCS4jf1K/C/sMsaE8ZjUf/lE0WVigK1B0K1nx08ysHB1Z938N\r\nr01WxRTNw/x1aWfVHYWFdu42bvjqSOBkHix77LUXuHJfwE0itxMblTEM0smz\r\numIEqO0GZDVzsBVR4zy4D8Fxm7yUSiOqVmYPzfDSgKLIstGXHgx4Hq6hRWnM\r\niQr7t3C/tgXNUxtB7ASubYrcoUbn3yhaAFaf2mEr42hjUsfbl6IxB2FwY+wb\r\n7FRtS43Zk0z1Ff+cn+EspDNsLKtrsZtVoSr1RrII5orcz+raqCcaItmAjnXX\r\nki7APIYMdH0cJTY3oZIWuIt+vfFm1kbDGC0tuWL9+tPUSFDBInF6dkQU206A\r\nBYdacjLopIfgzxZs7OmR7xZ9JRPLexEAk+4=\r\n=Lw7Q\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.42_1674858420456_0.6239260501338326"},"_hasShrinkwrap":false},"1.0.0-alpha.43":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.43","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"./lib/index.js","types":"./lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"build":"./scripts/build","clean":"rm -rf node_modules && tsc -b --clean","lint":"eslint --ext .ts,.js ./src","prepack":"./scripts/prepack","postpack":"rm -f oclif.manifest.json","sort-package-json":"sort-package-json","test":"jest","version":"npx oclif-dev readme && git add README.md"},"dependencies":{"@babel/core":"^7.20.12","@oclif/command":"^1.8.21","@oclif/config":"^1.18.6","@oclif/plugin-help":"^5.2.0","@sanity-codegen/core":"^1.0.0-alpha.42","@sanity-codegen/extractor":"^1.0.0-alpha.42","@sanity-codegen/types":"^1.0.0-alpha.42","babel-merge":"^3.0.0","chalk":"^4.1.2","common-tags":"^1.8.2","dotenv":"^16.0.3","dotenv-expand":"^10.0.0","ora":"^5.4.1","rxjs":"^7.8.0"},"devDependencies":{"@oclif/dev-cli":"^1.26.10","@types/common-tags":"^1.8.1","@types/node":"^18.11.18","globby":"~11.0.0"},"engines":{"node":">=12.22.0"},"publishConfig":{"access":"public"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"gitHead":"00e755de005cd64e97c22b81405e4cea79e44f8c","readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  // sanityConfigPath: './sanity.config.ts',\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)), a list of globs, or a\n   * function that returns a list of paths to specify the source files you want\n   * to generate types from.\n   *\n   * If `include` is provided as a function then `exclude`\n   * will not be used.\n   */\n  // include: ['./src/**/*.{js,jsx,ts,tsx}'],\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)) or a list of globs to\n   * specify which source files you want to exclude from type generation.\n   */\n  // exclude: ['**/*.test.{js,ts,tsx}', '**/node_modules'],\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `sanity-codegen.d.ts`.\n   */\n  // output: './sanity-codegen.d.ts',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelrcPath: './babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelOptions: {\n  //   // ...\n  // },\n  /**\n   * Determines from where files are relative to. Defaults to where your\n   * sanity-codegen config was found.\n   */\n  // root: process.cwd(),\n  /**\n   * An array of extracted and normalized schema results from the\n   * `normalizeSchema` function\n   */\n  // normalizedSchemas: undefined,\n  /**\n   * Ignores workspace schemas and excludes them from codegen. Useful if you\n   * have a workspace that mirrors another one in schema (e.g. for staging env)\n   */\n  // ignoreSchemas: ['staging'],\n  /**\n   * Optionally provide a function that generates the typescript type identifer\n   * from the sanity type name. Use this function to override the default and\n   * prevent naming collisions.\n   */\n  // generateTypeName: undefined,\n  /**\n   * This option is fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigPath: undefined,\n  /**\n   * This options is also fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigOptions: undefined,\n};\n\nexport default config;\n```\n\nAdditionally, the CLI will load .env files using a similar method to the Sanity CLI (via Vite). [See here for more info.](https://www.sanity.io/docs/environment-variables)\n\n<!-- toc -->\n* [@sanity-codegen/cli](#sanity-codegencli)\n* [Usage](#usage)\n* [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.43 linux-x64 node-v18.14.0\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n* [`sanity-codegen codegen [INCLUDE]`](#sanity-codegen-codegen-include)\n* [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n\n## `sanity-codegen codegen [INCLUDE]`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen codegen [INCLUDE]\n\nARGUMENTS\n  INCLUDE  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --exclude=exclude\n      Specify a glob or a list of globs to specify which source files you want\n      to exclude from type generation. Powered by globby.\n\n  --ignoreSchemas=ignoreSchemas\n      A common separated list that tells the codegen to ignores workspace\n      schemas and exclude them from codegen. Useful if you have a workspace\n      that mirrors another one in schema (e.g. staging env).\n\n  --include=include\n      Specify a glob or a list of globs to specify which source files you want\n      to include from type generation. Powered by globby.\n\n  --output=output\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `sanity-codegen.d.ts`.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --sanityConfigPath=sanityConfigPath\n      Optionally provide an exact path for the CLI to look for a sanity\n      configuration file (sanity.config.[t|j]s). If not provided, the CLI will\n      try to default to the current working directory.\n\n      Any CLI flags passed with override the config options.\n```\n\n_See code: [lib/commands/codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.43/lib/commands/codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.18/src/commands/help.ts)_\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.43","_nodeVersion":"18.14.0","_npmVersion":"lerna/6.4.1/node@v18.14.0+x64 (linux)","dist":{"integrity":"sha512-huhjOmdNk/aUE68avWEZ1JtwtG8ZzIA/LCxdbL+IJkOrtKPDec43FjbMermqsKS/NofeGgtGGLjYxRkpUsrDLQ==","shasum":"bdff4d89f944c7f03632a52b3c5f9526a7185daf","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.43.tgz","fileCount":58,"unpackedSize":46303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHQd+ONsdmDggydxa6NV5aQ19OUI3dVtKf9oDmhczxuyAiApF/lHuvOnCZawixO7NntmGrjLl1lz6566k1yK7xrqDw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5qbVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGUBAAmN62uAZuHlFEjMR62QZzD5jk0/6v90B+VcChKfdBrKS1VVe0\r\ni4g+9ZnLd1N1nMTCB35RhMvqJwiENzEYLWbQ7GS0jDiQ2Cv2RlMyAhKCox6u\r\nQWm+vAkLp4v8ffGyMHcNfef4bgHns21atCIBDU33S0IcySKkM1Zpm/eE7hpF\r\nSvGEIaLXxX1mYI1GzO+jHuSnwX4VQLLRPEdfU/JRMw+GNPL+5aCZ2fnsIAwG\r\nxc09/7rECMQFaP0EPWNe58v4hLZp1oB6HvOoL2EECLaeq9hgrRWuQJSRvv9s\r\n3GXAe5ZWfhMj1iyYnD9bOzI9Hl9CX+kRyYYElbxL0AVq7pdr17XcOOVpbEEZ\r\nmQzeiABenlHbNiv6fTTzEAwwlJLHnImjXcZDD80TX8ZpVc3ZacoXJXATYj9n\r\nzFgROFKoLuJfD+fyUYUG4HkbEgTuf8YLX8jOYJbAwtzxmfIIgUc4MzSTogcW\r\ntB1F886a6JrUTAlA6/XoCSlDdmoLm+YsLhe8doZw+GRsGSFcLszQAVbMaNLM\r\nG2wuLMPpkcj+XBFeR4Uux+vNZHW+2pYjGSNjGA4meh7EnWWU/L6bDCwIJJ/2\r\nHqUhBO4JJHakvf3/FqM/WU+HXSK2DOfSZCqA2KDZjsenVnCDrIl9j/aRl1cO\r\nu/rYnqTe3UNaUaa4i1S1MEDwUUxa207/oFI=\r\n=Mk63\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.43_1676060373367_0.45714447785894885"},"_hasShrinkwrap":false},"1.0.0-alpha.44":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.44","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"./lib/index.js","types":"./lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"build":"./scripts/build","clean":"rm -rf node_modules && tsc -b --clean","lint":"eslint --ext .ts,.js ./src","prepack":"./scripts/prepack","postpack":"rm -f oclif.manifest.json","sort-package-json":"sort-package-json","test":"jest","version":"npx oclif-dev readme && git add README.md"},"dependencies":{"@babel/core":"^7.20.12","@oclif/command":"^1.8.21","@oclif/config":"^1.18.6","@oclif/plugin-help":"^5.2.0","@sanity-codegen/core":"^1.0.0-alpha.42","@sanity-codegen/extractor":"^1.0.0-alpha.44","@sanity-codegen/types":"^1.0.0-alpha.42","babel-merge":"^3.0.0","chalk":"^4.1.2","common-tags":"^1.8.2","dotenv":"^16.0.3","dotenv-expand":"^10.0.0","ora":"^5.4.1","rxjs":"^7.8.0"},"devDependencies":{"@oclif/dev-cli":"^1.26.10","@types/common-tags":"^1.8.1","@types/node":"^18.11.18","globby":"~11.0.0"},"engines":{"node":">=12.22.0"},"publishConfig":{"access":"public"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"gitHead":"12cae73f0b07bde4bf1c08a5baa45074295041b6","readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  // sanityConfigPath: './sanity.config.ts',\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)), a list of globs, or a\n   * function that returns a list of paths to specify the source files you want\n   * to generate types from.\n   *\n   * If `include` is provided as a function then `exclude`\n   * will not be used.\n   */\n  // include: ['./src/**/*.{js,jsx,ts,tsx}'],\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)) or a list of globs to\n   * specify which source files you want to exclude from type generation.\n   */\n  // exclude: ['**/*.test.{js,ts,tsx}', '**/node_modules'],\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `sanity-codegen.d.ts`.\n   */\n  // output: './sanity-codegen.d.ts',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelrcPath: './babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelOptions: {\n  //   // ...\n  // },\n  /**\n   * Determines from where files are relative to. Defaults to where your\n   * sanity-codegen config was found.\n   */\n  // root: process.cwd(),\n  /**\n   * An array of extracted and normalized schema results from the\n   * `normalizeSchema` function\n   */\n  // normalizedSchemas: undefined,\n  /**\n   * Ignores workspace schemas and excludes them from codegen. Useful if you\n   * have a workspace that mirrors another one in schema (e.g. for staging env)\n   */\n  // ignoreSchemas: ['staging'],\n  /**\n   * Optionally provide a function that generates the typescript type identifer\n   * from the sanity type name. Use this function to override the default and\n   * prevent naming collisions.\n   */\n  // generateTypeName: undefined,\n  /**\n   * This option is fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigPath: undefined,\n  /**\n   * This options is also fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigOptions: undefined,\n};\n\nexport default config;\n```\n\nAdditionally, the CLI will load .env files using a similar method to the Sanity CLI (via Vite). [See here for more info.](https://www.sanity.io/docs/environment-variables)\n\n<!-- toc -->\n* [@sanity-codegen/cli](#sanity-codegencli)\n* [Usage](#usage)\n* [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.44 linux-x64 node-v18.16.0\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n* [`sanity-codegen codegen [INCLUDE]`](#sanity-codegen-codegen-include)\n* [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n\n## `sanity-codegen codegen [INCLUDE]`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen codegen [INCLUDE]\n\nARGUMENTS\n  INCLUDE  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --exclude=exclude\n      Specify a glob or a list of globs to specify which source files you want\n      to exclude from type generation. Powered by globby.\n\n  --ignoreSchemas=ignoreSchemas\n      A common separated list that tells the codegen to ignores workspace\n      schemas and exclude them from codegen. Useful if you have a workspace\n      that mirrors another one in schema (e.g. staging env).\n\n  --include=include\n      Specify a glob or a list of globs to specify which source files you want\n      to include from type generation. Powered by globby.\n\n  --output=output\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `sanity-codegen.d.ts`.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --sanityConfigPath=sanityConfigPath\n      Optionally provide an exact path for the CLI to look for a sanity\n      configuration file (sanity.config.[t|j]s). If not provided, the CLI will\n      try to default to the current working directory.\n\n      Any CLI flags passed with override the config options.\n```\n\n_See code: [lib/commands/codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.44/lib/commands/codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.18/src/commands/help.ts)_\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.44","_nodeVersion":"18.16.0","_npmVersion":"lerna/6.6.1/node@v18.16.0+x64 (linux)","dist":{"integrity":"sha512-9uvC1C9oY+O0ZZWLg5gs1LxG+Jh4gnVLCM5ef/t/7z8NbnlolMJm+7UHVayIb9O7Gxhd7VkuEW+wutVTyO43Jw==","shasum":"17ee94adb92ccb79f107424410a1567c4a3a790b","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.44.tgz","fileCount":58,"unpackedSize":45581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBOVI7Hz9ASgN131GRTAbN5jj97TXp7yp/aOylhEdHcAIhAPXZKciWftCPi6oCDB28Dq5/ZGg9HAUuu6X/y+6qHtK5"}]},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.44_1683729670205_0.20212349994130618"},"_hasShrinkwrap":false},"1.0.0-alpha.45":{"name":"@sanity-codegen/cli","version":"1.0.0-alpha.45","description":"CLI for sanity-codegen","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"license":"MIT","author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"main":"./lib/index.js","types":"./lib/index.d.ts","bin":{"sanity-codegen":"bin/run"},"scripts":{"build":"./scripts/build","clean":"rm -rf node_modules && tsc -b --clean","lint":"eslint --ext .ts,.js ./src","prepack":"./scripts/prepack","postpack":"rm -f oclif.manifest.json","sort-package-json":"sort-package-json","test":"jest","version":"npx oclif-dev readme && git add README.md"},"dependencies":{"@babel/core":"^7.20.12","@oclif/command":"^1.8.21","@oclif/config":"^1.18.6","@oclif/plugin-help":"^5.2.0","@sanity-codegen/core":"^1.0.0-alpha.45","@sanity-codegen/extractor":"^1.0.0-alpha.45","@sanity-codegen/types":"^1.0.0-alpha.42","babel-merge":"^3.0.0","chalk":"^4.1.2","common-tags":"^1.8.2","dotenv":"^16.0.3","dotenv-expand":"^10.0.0","ora":"^5.4.1","rxjs":"^7.8.0"},"devDependencies":{"@oclif/dev-cli":"^1.26.10","@types/common-tags":"^1.8.1","@types/node":"^18.11.18","globby":"~11.0.0"},"engines":{"node":">=12.22.0"},"publishConfig":{"access":"public"},"oclif":{"commands":"./lib/commands","bin":"sanity-codegen","plugins":["@oclif/plugin-help"]},"gitHead":"8f9acfc8d675c6279d75c082e62221300249a6c1","readme":"# @sanity-codegen/cli\n\nCLI for Sanity CodeGen\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@sanity-codegen/cli.svg)](https://npmjs.org/package/@sanity-codegen/cli)\n[![License](https://img.shields.io/npm/l/@sanity-codegen/cli.svg)](https://github.com/ricokahler/sanity-codegen/blob/master/package.json)\n\nYou may also use a config file with the name `sanity-codegen.config.ts` or `sanity-codegen.config.js`.\n\nThe CLI will walk up the file tree until it finds this file.\n\n```ts\nimport { SanityCodegenConfig } from '@sanity-codegen/cli';\n\nconst config: SanityCodegenConfig = {\n  /**\n   * Optionally provide the path to your sanity schema entry point. If not\n   * provided, the CLI will try to get this value from your `sanity.json` file.\n   */\n  // sanityConfigPath: './sanity.config.ts',\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)), a list of globs, or a\n   * function that returns a list of paths to specify the source files you want\n   * to generate types from.\n   *\n   * If `include` is provided as a function then `exclude`\n   * will not be used.\n   */\n  // include: ['./src/**/*.{js,jsx,ts,tsx}'],\n  /**\n   * Specify a glob (powered by\n   * [`globby`](https://github.com/sindresorhus/globby)) or a list of globs to\n   * specify which source files you want to exclude from type generation.\n   */\n  // exclude: ['**/*.test.{js,ts,tsx}', '**/node_modules'],\n  /**\n   * Optionally provide a destination path to the resulting sanity groq types.\n   * The default value is `sanity-codegen.d.ts`.\n   */\n  // output: './sanity-codegen.d.ts',\n  /**\n   * Optionally provide a path to a .babelrc file. This will be passed into the\n   * babel options of the schema executor.\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelrcPath: './babelrc',\n  /**\n   * Optionally provide babel options inline. This will be passed into the babel\n   * options of the schema executor.\n   *\n   * Note: these options get serialized to JSON so if you need to pass any\n   * non-serializable babel options, you must use `babelrcPath` (can be\n   * `.babelrc.js`).\n   *\n   * If both `babelOptions` and `babelrcPath` are provided, the results will be\n   * merged with `babel-merge`\n   */\n  // babelOptions: {\n  //   // ...\n  // },\n  /**\n   * Determines from where files are relative to. Defaults to where your\n   * sanity-codegen config was found.\n   */\n  // root: process.cwd(),\n  /**\n   * An array of extracted and normalized schema results from the\n   * `normalizeSchema` function\n   */\n  // normalizedSchemas: undefined,\n  /**\n   * Ignores workspace schemas and excludes them from codegen. Useful if you\n   * have a workspace that mirrors another one in schema (e.g. for staging env)\n   */\n  // ignoreSchemas: ['staging'],\n  /**\n   * Optionally provide a function that generates the typescript type identifer\n   * from the sanity type name. Use this function to override the default and\n   * prevent naming collisions.\n   */\n  // generateTypeName: undefined,\n  /**\n   * This option is fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigPath: undefined,\n  /**\n   * This options is also fed directly to prettier `resolveConfig`\n   *\n   * https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options\n   */\n  // prettierResolveConfigOptions: undefined,\n};\n\nexport default config;\n```\n\nAdditionally, the CLI will load .env files using a similar method to the Sanity CLI (via Vite). [See here for more info.](https://www.sanity.io/docs/environment-variables)\n\n<!-- toc -->\n* [@sanity-codegen/cli](#sanity-codegencli)\n* [Usage](#usage)\n* [Commands](#commands)\n<!-- tocstop -->\n\n# Usage\n\n<!-- usage -->\n```sh-session\n$ npm install -g @sanity-codegen/cli\n$ sanity-codegen COMMAND\nrunning command...\n$ sanity-codegen (-v|--version|version)\n@sanity-codegen/cli/1.0.0-alpha.45 linux-x64 node-v18.16.0\n$ sanity-codegen --help [COMMAND]\nUSAGE\n  $ sanity-codegen COMMAND\n...\n```\n<!-- usagestop -->\n\n# Commands\n\n<!-- commands -->\n* [`sanity-codegen codegen [INCLUDE]`](#sanity-codegen-codegen-include)\n* [`sanity-codegen help [COMMAND]`](#sanity-codegen-help-command)\n\n## `sanity-codegen codegen [INCLUDE]`\n\nparses source code files for GROQ queries and outputs TypeScript types from them\n\n```\nUSAGE\n  $ sanity-codegen codegen [INCLUDE]\n\nARGUMENTS\n  INCLUDE  Provide a glob to match source files you wish to parse for GROQ queries.\n\nOPTIONS\n  -h, --help\n      show CLI help\n\n  --configPath=configPath\n      Optionally provide an exact path for the CLI to look for a\n      sanity-codegen configuration file. If not provided, the CLI will walk up\n      the file system checking for `sanity-codegen.config.js` or\n      `sanity-codegen.config.ts`.\n\n      Any CLI flags passed with override the config options.\n\n  --exclude=exclude\n      Specify a glob or a list of globs to specify which source files you want\n      to exclude from type generation. Powered by globby.\n\n  --ignoreSchemas=ignoreSchemas\n      A common separated list that tells the codegen to ignores workspace\n      schemas and exclude them from codegen. Useful if you have a workspace\n      that mirrors another one in schema (e.g. staging env).\n\n  --include=include\n      Specify a glob or a list of globs to specify which source files you want\n      to include from type generation. Powered by globby.\n\n  --output=output\n      Optionally provide a destination path to the resulting sanity groq\n      types. The default value is `sanity-codegen.d.ts`.\n\n  --root=root\n      Determines from where files are relative to. Defaults to where your\n      sanity-codegen config was found (if any) or the current working\n      directory.\n\n  --sanityConfigPath=sanityConfigPath\n      Optionally provide an exact path for the CLI to look for a sanity\n      configuration file (sanity.config.[t|j]s). If not provided, the CLI will\n      try to default to the current working directory.\n\n      Any CLI flags passed with override the config options.\n```\n\n_See code: [lib/commands/codegen.js](https://github.com/ricokahler/sanity-codegen/blob/v1.0.0-alpha.45/lib/commands/codegen.js)_\n\n## `sanity-codegen help [COMMAND]`\n\ndisplay help for sanity-codegen\n\n```\nUSAGE\n  $ sanity-codegen help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.18/src/commands/help.ts)_\n<!-- commandsstop -->\n","readmeFilename":"README.md","_id":"@sanity-codegen/cli@1.0.0-alpha.45","_nodeVersion":"18.16.0","_npmVersion":"lerna/6.6.1/node@v18.16.0+x64 (linux)","dist":{"integrity":"sha512-WErhwYkt2lJK/lkEgM2ZbLkBVgNgZULfWPnJTD41KWJNy7bEc/MXH/NaLaOHlzdpUOZFiNtuthGZdfdjZrY/CQ==","shasum":"59897708c0b445bf025948452656cef499b3b955","tarball":"https://registry.npmjs.org/@sanity-codegen/cli/-/cli-1.0.0-alpha.45.tgz","fileCount":58,"unpackedSize":45581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD102FynFcVUUvGtZeNy3c9ImSYkIyExMkfnr4KDx4JYgIgaGoRlFqoS0+wWnFMMZdPJt342nJbf/0GCbCJNJMdpx0="}]},"_npmUser":{"name":"ricokahler","email":"ricokahler@me.com"},"directories":{},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.0.0-alpha.45_1683735698626_0.6982310054254603"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-07T10:02:56.274Z","1.0.0-alpha.0":"2021-04-07T10:02:56.662Z","modified":"2023-05-10T16:21:38.940Z","1.0.0-alpha.1":"2021-05-03T08:29:23.980Z","1.0.0-alpha.2":"2021-05-09T05:55:12.408Z","1.0.0-alpha.3":"2021-05-09T06:07:23.628Z","1.0.0-alpha.4":"2021-07-18T18:16:15.455Z","1.0.0-alpha.5":"2021-07-18T18:36:20.775Z","1.0.0-alpha.6":"2021-07-24T07:21:30.881Z","1.0.0-alpha.7":"2021-07-24T07:42:02.228Z","1.0.0-alpha.8":"2021-07-24T15:18:22.204Z","1.0.0-alpha.9":"2021-07-30T17:21:13.575Z","1.0.0-alpha.10":"2021-08-09T13:36:10.575Z","1.0.0-alpha.11":"2021-08-22T16:30:12.891Z","1.0.0-alpha.12":"2021-11-02T18:10:29.230Z","1.0.0-alpha.13":"2021-11-15T01:18:48.931Z","1.0.0-alpha.19":"2021-11-15T02:42:37.202Z","1.0.0-alpha.24":"2021-11-15T03:37:09.484Z","1.0.0-alpha.25":"2021-11-15T03:43:14.075Z","1.0.0-alpha.26":"2022-01-27T00:40:29.823Z","1.0.0-alpha.28":"2023-01-19T00:51:54.570Z","1.0.0-alpha.29":"2023-01-19T06:17:55.594Z","1.0.0-alpha.31":"2023-01-19T07:02:54.351Z","1.0.0-alpha.32":"2023-01-19T07:17:08.793Z","1.0.0-alpha.34":"2023-01-20T04:44:57.670Z","1.0.0-alpha.35":"2023-01-20T21:12:34.702Z","1.0.0-alpha.36":"2023-01-20T21:22:16.633Z","1.0.0-alpha.37":"2023-01-21T19:06:43.573Z","1.0.0-alpha.38":"2023-01-21T19:43:53.269Z","1.0.0-alpha.39":"2023-01-21T19:57:31.072Z","1.0.0-alpha.40":"2023-01-21T19:58:51.711Z","1.0.0-alpha.41":"2023-01-23T22:05:34.861Z","1.0.0-alpha.42":"2023-01-27T22:27:00.692Z","1.0.0-alpha.43":"2023-02-10T20:19:33.557Z","1.0.0-alpha.44":"2023-05-10T14:41:10.474Z","1.0.0-alpha.45":"2023-05-10T16:21:38.814Z"},"maintainers":[{"name":"ricokahler","email":"ricokahler@me.com"}],"description":"CLI for sanity-codegen","homepage":"https://github.com/ricokahler/sanity-codegen/packages/cli","keywords":["oclif","sanity","sanity-plugin","sanity-tool","typescript","codegen"],"repository":{"type":"git","url":"git+https://github.com/ricokahler/sanity-codegen.git","directory":"packages/cli"},"author":{"name":"Rico Kahler","email":"ricokahler@me.com","url":"https://github.com/ricokahler"},"bugs":{"url":"https://github.com/ricokahler/sanity-codegen/issues"},"license":"MIT","readme":"","readmeFilename":""}