|
| 1 | +import {deprecate} from 'node:util' |
| 2 | + |
| 3 | +import {NonInteractiveError as _NonInteractiveError} from '../errors/NonInteractiveError.js' |
| 4 | +import {NotFoundError as _NotFoundError} from '../errors/NotFoundError.js' |
| 5 | +import {ProjectRootNotFoundError as _ProjectRootNotFoundError} from '../errors/ProjectRootNotFoundError.js' |
| 6 | + |
| 7 | +export * from '../config/cli/getCliConfig.js' |
| 8 | +export * from '../config/cli/getCliConfigSync.js' |
| 9 | +export {type CliConfig} from '../config/cli/types/cliConfig.js' |
| 10 | +export {type UserViteConfig} from '../config/cli/types/userViteConfig.js' |
| 11 | +export * from '../config/findProjectRoot.js' |
| 12 | +export * from '../config/findProjectRootSync.js' |
| 13 | +export * from '../config/studio/getStudioConfig.js' |
| 14 | +export * from '../config/studio/getStudioWorkspaces.js' |
| 15 | +export * from '../config/studio/isStudioConfig.js' |
| 16 | +export * from '../config/util/findConfigsPaths.js' |
| 17 | +export * from '../config/util/findStudioConfigPath.js' |
| 18 | +export {type ProjectRootResult} from '../config/util/recursivelyResolveProjectRoot.js' |
| 19 | +export * from '../debug.js' |
| 20 | +export * from '../loaders/studio/studioWorkerTask.js' |
| 21 | +export * from '../loaders/tsx/tsxWorkerTask.js' |
| 22 | +export * from '../SanityCommand.js' |
| 23 | +export * from '../services/apiClient.js' |
| 24 | +export * from '../services/cliUserConfig.js' |
| 25 | +export * from '../services/getCliToken.js' |
| 26 | +export * from '../telemetry/getTelemetryBaseInfo.js' |
| 27 | +export { |
| 28 | + type CLITelemetryStore, |
| 29 | + type ConsentInformation, |
| 30 | + type TelemetryUserProperties, |
| 31 | +} from '../telemetry/types.js' |
| 32 | +export {type Output, type SanityOrgUser} from '../types.js' |
| 33 | +export {doImport} from '../util/doImport.js' |
| 34 | +export * from '../util/environment/mockBrowserEnvironment.js' |
| 35 | +export { |
| 36 | + clearCliTelemetry, |
| 37 | + CLI_TELEMETRY_SYMBOL, |
| 38 | + getCliTelemetry, |
| 39 | + setCliTelemetry, |
| 40 | +} from '../util/getCliTelemetry.js' |
| 41 | +export * from '../util/getSanityEnvVar.js' |
| 42 | +export * from '../util/getSanityUrl.js' |
| 43 | +export * from '../util/getUserConfig.js' |
| 44 | +export * from '../util/importModule.js' |
| 45 | +export * from '../util/isCi.js' |
| 46 | +export * from '../util/isInteractive.js' |
| 47 | +export * from '../util/isStaging.js' |
| 48 | +export * from '../util/normalizePath.js' |
| 49 | +export * from '../util/promisifyWorker.js' |
| 50 | +export * from '../util/readPackageJson.js' |
| 51 | +export * from '../util/resolveLocalPackage.js' |
| 52 | +export * from '../util/safeStructuredClone.js' |
| 53 | +export * from '../ux/colorizeJson.js' |
| 54 | +export * from '../ux/timer.js' |
| 55 | + |
| 56 | +export const NonInteractiveError = deprecate( |
| 57 | + _NonInteractiveError, |
| 58 | + 'Import `NonInteractiveError` from `@sanity/cli-core/errors`', |
| 59 | +) |
| 60 | +export const NotFoundError = deprecate( |
| 61 | + _NotFoundError, |
| 62 | + 'Import `NotFoundError` from `@sanity/cli-core/errors`', |
| 63 | +) |
| 64 | +export const ProjectRootNotFoundError = deprecate( |
| 65 | + _ProjectRootNotFoundError, |
| 66 | + 'Import `ProjectRootNotFoundError` from `@sanity/cli-core/errors`', |
| 67 | +) |
0 commit comments