Skip to content

Commit

Permalink
feat(sanity): extract manifest during build
Browse files Browse the repository at this point in the history
  • Loading branch information
juice49 committed Apr 28, 2024
1 parent af52a0a commit cf33a9d
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit cf33a9d

Please sign in to comment.