Skip to content

Commit

Permalink
Merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
shauns committed Oct 17, 2024
1 parent fdb3222 commit 1506168
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export async function setupPreviewThemeAppExtensionsProcess(
return
}

// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const themeExtension = themeExtensions[0]!
const themeExtensionDirectory = themeExtension.directory
const themeExtensionPort = options.themeExtensionPort ?? 9293
Expand Down
1 change: 1 addition & 0 deletions packages/theme/src/cli/utilities/cli-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ interface CLIConfigOptions {
*/
export function configureCLIEnvironment(options: CLIConfigOptions): void {
if (options.verbose) {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
process.env[globalFlags.verbose.env!] = 'true'
}

Expand Down
5 changes: 3 additions & 2 deletions packages/theme/src/cli/utilities/log-request-line.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/unbound-method */
import {EXTENSION_CDN_PREFIX, VANITY_CDN_PREFIX} from './theme-environment/proxy.js'
import {timestampDateFormat} from '../constants.js'
import {Response as CliKitResponse} from '@shopify/cli-kit/node/http'
Expand All @@ -8,7 +9,7 @@ import {extname} from '@shopify/cli-kit/node/path'
const CHARACTER_TRUNCATION_LIMIT = 80

export function logRequestLine(event: H3Event, response: CliKitResponse | Response) {
if (shouldLog(event) === false) return
if (!shouldLog(event)) return

const truncatedPath =
event.path.length > CHARACTER_TRUNCATION_LIMIT
Expand All @@ -26,7 +27,7 @@ export function logRequestLine(event: H3Event, response: CliKitResponse | Respon
outputContent`• ${timestampDateFormat.format(new Date())} Request ${outputToken.raw(
'»',
)} ${eventMethodAligned} ${statusColor(String(response.status))} ${truncatedPath} ${outputToken.gray(
`${durationString}`,
durationString,
)}`,
)
}
Expand Down

0 comments on commit 1506168

Please sign in to comment.