diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.ts index ddffcdcd470..89c29685a5b 100644 --- a/packages/cli/src/index.ts +++ b/packages/cli/src/index.ts @@ -28,6 +28,7 @@ export {default as TunnelStartHook} from '@shopify/plugin-cloudflare/hooks/tunne export {default as TunnelProviderHook} from '@shopify/plugin-cloudflare/hooks/provider' export {hooks as PluginHook} from '@oclif/plugin-plugins' export {AppSensitiveMetadataHook, AppInitHook, AppPublicMetadataHook} from '@shopify/app' +export {push, pull, fetchStoreThemes} from '@shopify/theme' export const HydrogenInitHook = HydrogenHooks.init diff --git a/packages/theme/src/index.ts b/packages/theme/src/index.ts index b5453c98cab..387acb05db8 100644 --- a/packages/theme/src/index.ts +++ b/packages/theme/src/index.ts @@ -14,9 +14,6 @@ import Push from './cli/commands/theme/push.js' import Rename from './cli/commands/theme/rename.js' import Serve from './cli/commands/theme/serve.js' import Share from './cli/commands/theme/share.js' -import {pull} from './cli/services/pull.js' -import {push} from './cli/services/push.js' -import {publicFetchStoreThemes} from './cli/utilities/theme-selector/fetch.js' const COMMANDS = { 'theme:init': Init, @@ -37,14 +34,6 @@ const COMMANDS = { 'theme:share': Share, } -const PUBLIC_COMMANDS = { - pull, - push, - publicFetchStoreThemes, -} - -export {PUBLIC_COMMANDS} - export default COMMANDS /** Development server for theme extensions */ @@ -53,3 +42,8 @@ export * from './cli/utilities/theme-ext-environment/theme-ext-server.js' /** Storefront authentication support for running the development server on password-protected stores */ export {isStorefrontPasswordProtected} from './cli/utilities/theme-environment/storefront-session.js' export {ensureValidPassword} from './cli/utilities/theme-environment/storefront-password-prompt.js' + +// Expose core utilities for developers to build and expand on the CLI +export {pull} from './cli/services/pull.js' +export {push} from './cli/services/push.js' +export {publicFetchStoreThemes as fetchStoreThemes} from './cli/utilities/theme-selector/fetch.js'