@sanity/cli 4.9.0-next.3 → 4.9.0-next.31

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.
@@ -47758,11 +47758,13 @@ export default defineCliConfig({
47758
47758
  projectId: '%projectId%',
47759
47759
  dataset: '%dataset%'
47760
47760
  },
47761
- /**
47762
- * Enable auto-updates for studios.
47763
- * Learn more at https://www.sanity.io/docs/cli#auto-updates
47764
- */
47765
- autoUpdates: __BOOL__autoUpdates__,
47761
+ deployment: {
47762
+ /**
47763
+ * Enable auto-updates for studios.
47764
+ * Learn more at https://www.sanity.io/docs/cli#auto-updates
47765
+ */
47766
+ autoUpdates: __BOOL__autoUpdates__,
47767
+ }
47766
47768
  })
47767
47769
  `;
47768
47770
  function createCliConfig(options2) {
@@ -53706,15 +53708,11 @@ export const client = createClient({
53706
53708
  `, live = `// Querying with "sanityFetch" will keep content automatically updated
53707
53709
  // Before using it, import and render "<SanityLive />" in your layout, see
53708
53710
  // https://github.com/sanity-io/next-sanity#live-content-api for more information.
53709
- import { defineLive } from "next-sanity";
53711
+ import { defineLive } from "next-sanity/live";
53710
53712
  import { client } from './client'
53711
53713
 
53712
- export const { sanityFetch, SanityLive } = defineLive({
53713
- client: client.withConfig({
53714
- // Live content is currently only available on the experimental API
53715
- // https://www.sanity.io/docs/api-versioning
53716
- apiVersion: 'vX'
53717
- })
53714
+ export const { sanityFetch, SanityLive } = defineLive({
53715
+ client,
53718
53716
  });
53719
53717
  `, imageTS = `import createImageUrlBuilder from '@sanity/image-url'
53720
53718
  import { SanityImageSource } from "@sanity/image-url/lib/types/types";
@@ -53987,7 +53985,7 @@ You can find your project on Sanity Manage \u2014 https://www.sanity.io/manage/p
53987
53985
  cwd: workDir,
53988
53986
  stdio: "inherit"
53989
53987
  };
53990
- chosen === "npm" ? await execa("npm", ["install", "--legacy-peer-deps", "next-sanity@10"], execOptions) : chosen === "yarn" ? await execa("npx", ["install-peerdeps", "--yarn", "next-sanity@10"], execOptions) : chosen === "pnpm" && await execa("pnpm", ["install", "next-sanity@10"], execOptions), print(
53988
+ chosen === "npm" ? await execa("npm", ["install", "--legacy-peer-deps", "next-sanity@11"], execOptions) : chosen === "yarn" ? await execa("npx", ["install-peerdeps", "--yarn", "next-sanity@11"], execOptions) : chosen === "pnpm" && await execa("pnpm", ["install", "next-sanity@11"], execOptions), print(
53991
53989
  `
53992
53990
  ${chalk2.green("Success!")} Your Sanity configuration files has been added to this project`
53993
53991
  );