@sanity/cli 3.92.1-next.7.5a04a23c77 → 3.92.1-next.71.ea3c6c334f

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 (40) hide show
  1. package/codemods/partsTypeDirective.js +1 -2
  2. package/lib/_chunks-cjs/cli.js +210 -130
  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/index.mjs.map +1 -1
  11. package/lib/workers/typegenGenerate.js +3 -4
  12. package/lib/workers/typegenGenerate.js.map +1 -1
  13. package/package.json +15 -13
  14. package/src/actions/codemod/codemodAction.ts +1 -1
  15. package/src/actions/codemod/mods/reactIconsV3.ts +1 -1
  16. package/src/actions/init-plugin/bootstrapFromTemplate.ts +2 -3
  17. package/src/actions/init-project/bootstrapLocalTemplate.ts +2 -2
  18. package/src/actions/init-project/git.ts +4 -4
  19. package/src/actions/init-project/initProject.ts +25 -13
  20. package/src/actions/init-project/readPackageJson.ts +1 -2
  21. package/src/actions/versions/findSanityModuleVersions.ts +1 -1
  22. package/src/cli.ts +3 -0
  23. package/src/commands/blueprints/addBlueprintsCommand.ts +32 -2
  24. package/src/commands/blueprints/initBlueprintsCommand.ts +23 -2
  25. package/src/commands/init/initCommand.ts +1 -1
  26. package/src/packageManager/installPackages.ts +33 -21
  27. package/src/util/cliWorker.ts +1 -1
  28. package/src/util/clientWrapper.ts +2 -2
  29. package/src/util/getCliConfig.ts +3 -3
  30. package/src/util/getLocalVersion.ts +1 -1
  31. package/src/util/journeyConfig.ts +2 -2
  32. package/src/util/remoteTemplate.ts +2 -2
  33. package/src/workers/typegenGenerate.ts +0 -1
  34. package/templates/blog/README.md +1 -1
  35. package/templates/clean/README.md +1 -1
  36. package/templates/ecommerce/README.md +1 -1
  37. package/templates/get-started/README.md +1 -1
  38. package/templates/moviedb/README.md +1 -1
  39. package/templates/quickstart/README.md +1 -1
  40. 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) {