@sanity/cli 3.92.1-next.9.9ecd386f43 → 3.93.1-bump-pkg-utils.10.412e2ab170

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/codemods/partsTypeDirective.js +1 -2
  2. package/lib/_chunks-cjs/cli.js +214 -134
  3. package/lib/_chunks-cjs/cli.js.map +1 -1
  4. package/lib/_chunks-cjs/cliWorker.js.map +1 -1
  5. package/lib/_chunks-cjs/getCliConfig.js +4 -2
  6. package/lib/_chunks-cjs/getCliConfig.js.map +1 -1
  7. package/lib/_chunks-cjs/journeyConfig.js.map +1 -1
  8. package/lib/_chunks-cjs/loadEnv.js +10 -5
  9. package/lib/_chunks-cjs/loadEnv.js.map +1 -1
  10. package/lib/cli.d.ts +6 -10
  11. package/lib/index.d.mts +331 -418
  12. package/lib/index.d.ts +331 -418
  13. package/lib/index.mjs.map +1 -1
  14. package/lib/run.d.ts +1 -1
  15. package/lib/workers/getAndWriteJourneySchema.d.ts +1 -1
  16. package/lib/workers/getCliConfig.d.ts +1 -1
  17. package/lib/workers/typegenGenerate.d.ts +35 -42
  18. package/lib/workers/typegenGenerate.js +3 -4
  19. package/lib/workers/typegenGenerate.js.map +1 -1
  20. package/package.json +17 -15
  21. package/src/actions/codemod/codemodAction.ts +1 -1
  22. package/src/actions/codemod/mods/reactIconsV3.ts +1 -1
  23. package/src/actions/init-plugin/bootstrapFromTemplate.ts +2 -3
  24. package/src/actions/init-project/bootstrapLocalTemplate.ts +2 -2
  25. package/src/actions/init-project/git.ts +4 -4
  26. package/src/actions/init-project/initProject.ts +25 -13
  27. package/src/actions/init-project/readPackageJson.ts +1 -2
  28. package/src/actions/versions/findSanityModuleVersions.ts +1 -1
  29. package/src/cli.ts +3 -0
  30. package/src/commands/blueprints/addBlueprintsCommand.ts +32 -2
  31. package/src/commands/blueprints/initBlueprintsCommand.ts +23 -2
  32. package/src/commands/init/initCommand.ts +1 -1
  33. package/src/packageManager/installPackages.ts +33 -21
  34. package/src/util/cliWorker.ts +1 -1
  35. package/src/util/clientWrapper.ts +2 -2
  36. package/src/util/getCliConfig.ts +3 -3
  37. package/src/util/getLocalVersion.ts +1 -1
  38. package/src/util/journeyConfig.ts +2 -2
  39. package/src/util/remoteTemplate.ts +2 -2
  40. package/src/workers/typegenGenerate.ts +0 -1
  41. package/templates/blog/README.md +1 -1
  42. package/templates/clean/README.md +1 -1
  43. package/templates/ecommerce/README.md +1 -1
  44. package/templates/get-started/README.md +1 -1
  45. package/templates/moviedb/README.md +1 -1
  46. package/templates/quickstart/README.md +1 -1
  47. package/templates/.eslintrc +0 -8
@@ -1,3 +1,4 @@
1
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
1
2
  const path = require('node:path')
2
3
 
3
4
  partsTypeDirective.parser = 'tsx'
@@ -13,7 +14,6 @@ function partsTypeDirective(fileInfo, api) {
13
14
  return fileInfo.source
14
15
  }
15
16
  const partImports = root.find(api.jscodeshift.ImportDeclaration, (node) =>
16
- // eslint-disable-next-line no-use-before-define
17
17
  isSanityPart(node.source.value),
18
18
  )
19
19
  if (partImports.length === 0) {
@@ -21,7 +21,6 @@ function partsTypeDirective(fileInfo, api) {
21
21
  }
22
22
 
23
23
  const existingDirectives = root.find(api.jscodeshift.Comment, (node) =>
24
- // eslint-disable-next-line no-use-before-define
25
24
  isSanityTypesReferenceDirective(node),
26
25
  )
27
26
  if (existingDirectives.length > 0) {