diff --git a/packages/sanity/src/_internal/cli/actions/build/buildAction.ts b/packages/sanity/src/_internal/cli/actions/build/buildAction.ts index 6b144438fa41..67d206802802 100644 --- a/packages/sanity/src/_internal/cli/actions/build/buildAction.ts +++ b/packages/sanity/src/_internal/cli/actions/build/buildAction.ts @@ -13,6 +13,8 @@ import {checkStudioDependencyVersions} from '../../util/checkStudioDependencyVer import {checkRequiredDependencies} from '../../util/checkRequiredDependencies' import {getTimer} from '../../util/timing' import {BuildTrace} from './build.telemetry' +import extractManifests from '../manifest/extractManifestsAction' +import { pick } from 'lodash' const rimraf = promisify(rimrafCallback) @@ -124,6 +126,13 @@ export default async function buildSanityStudio( const buildDuration = timer.end('bundleStudio') spin.text = `Build Sanity Studio (${buildDuration.toFixed()}ms)` + + await extractManifests({ + ...pick(args, ['argsWithoutOptions', 'argv', 'groupOrCommand']), + extOptions: {}, + extraArguments: [], + }, context) + spin.succeed() trace.complete() if (flags.stats) {