Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/wxt/src/cli/cli-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export function wrapAction(
},
) {
return async (...args: any[]) => {
// Enable consola's debug mode globally at the start of all commands when the `--debug` flag is
// passed
// Enable consola's debug mode globally at the start of all commands when
// the `--debug` flag is passed
const isDebug = !!args.find((arg) => arg?.debug);
if (isDebug) {
consola.level = LogLevels.debug;
Expand Down
6 changes: 4 additions & 2 deletions packages/wxt/src/core/generate-wxt-dir.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,17 @@ declare module "wxt/browser" {
};

const overrides = [
// Generate individual overloads for each message so JSDoc contains description and base translation.
// Generate individual overloads for each message so JSDoc contains
// description and base translation.
...messages.map((message) =>
renderGetMessageOverload(
`"${message.name}"`,
message.description,
message.message,
),
),
// Include a final union-based override so TS accepts valid string templates or concatenations
// Include a final union-based override so TS accepts valid string
// templates or concatenations.
// ie: browser.i18n.getMessage(`some_enum_${enumValue}`)
renderGetMessageOverload(
messages.map((message) => `"${message.name}"`).join(' | '),
Expand Down
4 changes: 2 additions & 2 deletions packages/wxt/src/core/utils/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export function defineCommand<TArgs extends any[]>(
},
) {
return async (...args: TArgs) => {
// Enable consola's debug mode globally at the start of all commands when the `--debug` flag is
// passed
// Enable consola's debug mode globally at the start of all commands when
// the `--debug` flag is passed
const isDebug = !!args.find((arg) => arg?.debug);
if (isDebug) {
consola.level = LogLevels.debug;
Expand Down
Loading