UNPKG

@sanity/cli

Version:

Sanity CLI tool for managing Sanity installations, managing plugins, schemas and datasets

8 lines (5 loc) 288 B
import {parentPort, workerData} from 'node:worker_threads' import {getAndWriteJourneySchema} from '../util/journeyConfig' getAndWriteJourneySchema(workerData) .then(() => parentPort?.postMessage({type: 'success'})) .catch((error) => parentPort?.postMessage({type: 'error', error}))