Skip to content

Commit

Permalink
Update exports
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmengo committed Sep 25, 2024
1 parent e60b91f commit b43121f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
1 change: 1 addition & 0 deletions packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
16 changes: 5 additions & 11 deletions packages/theme/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 */
Expand All @@ -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'

// Public Theme Commands
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'

0 comments on commit b43121f

Please sign in to comment.