Skip to content

Commit

Permalink
Fix duplicated exports
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaloriestra committed Dec 12, 2024
1 parent ae8c6d8 commit 3754eb4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/app/src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import init from './hooks/clear_command_cache.js'
import gatherPublicMetadata from './hooks/public_metadata.js'
import gatherSensitiveMetadata from './hooks/sensitive_metadata.js'
import AppCommand from './utilities/app-command.js'
import {init as initService} from './services/init/init.js'
import initService from './services/init/init.js'

/**
* All app commands should extend AppCommand.
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/cli/services/init/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ interface InitOptions {
}
}

export async function init(options: InitOptions) {
async function init(options: InitOptions) {
const packageManager: PackageManager = options.packageManager
const hyphenizedName = hyphenate(options.name)
const outputDirectory = joinPath(options.directory, hyphenizedName)
Expand Down
1 change: 1 addition & 0 deletions packages/cli-kit/src/private/node/conf-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export function getSession(config: LocalStorage<ConfSchema> = cliKitStore()): st
*/
export function setSession(session: string, config: LocalStorage<ConfSchema> = cliKitStore()): void {
if (typeof window === 'undefined') {
// eslint-disable-next-line no-console
console.log('Setting storageSession...')
sessionStorage.setItem('shopify-cli-web-session', session)
} else {
Expand Down
3 changes: 2 additions & 1 deletion packages/theme/src/cli/services/local-storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ export function getDevelopmentTheme(
outputDebug(outputContent`Getting development theme...`)
return developmentThemeLocalStorage().get(assertThemeStoreExists(themeStorage))
} else {
console.log('LocalStorage not available, skipping development themes...')
// eslint-disable-next-line no-console
console.log('LocalStorage not available, skipping development theme...')
return undefined
}
}
Expand Down

0 comments on commit 3754eb4

Please sign in to comment.