Skip to content

Commit

Permalink
add missing log
Browse files Browse the repository at this point in the history
  • Loading branch information
aklinker1 committed Nov 16, 2024
1 parent ac93dba commit f39cc62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/wxt/src/core/define-web-ext-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { WebExtConfig } from '../types';
*/
export function defineRunnerConfig(config: WebExtConfig): WebExtConfig {
consola.warn(
'defineRunnerConfig is deprecated, replace it with defineWebExtConfig',
'`defineRunnerConfig` is deprecated, use `defineWebExtConfig` instead. See https://wxt.dev/guide/resources/upgrading.html#v0-19-0-rarr-v0-20-0',
);
return defineWebExtConfig(config);
}

Check warning on line 12 in packages/wxt/src/core/define-web-ext-config.ts

View check run for this annotation

Codecov / codecov/patch

packages/wxt/src/core/define-web-ext-config.ts#L8-L12

Added lines #L8 - L12 were not covered by tests
Expand Down
5 changes: 5 additions & 0 deletions packages/wxt/src/core/resolve-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ export async function resolveConfig(
const outDir = path.resolve(outBaseDir, outDirTemplate);
const reloadCommand = mergedConfig.dev?.reloadCommand ?? 'Alt+R';

if (inlineConfig.runner != null || userConfig.runner != null) {
logger.warn(
'`InlineConfig#runner` is deprecated, use `InlineConfig#webExt` instead. See https://wxt.dev/guide/resources/upgrading.html#v0-19-0-rarr-v0-20-0',
);
}

Check warning on line 122 in packages/wxt/src/core/resolve-config.ts

View check run for this annotation

Codecov / codecov/patch

packages/wxt/src/core/resolve-config.ts#L119-L122

Added lines #L119 - L122 were not covered by tests
const runnerConfig = await loadConfig<WebExtConfig>({
name: 'web-ext',
cwd: root,
Expand Down

0 comments on commit f39cc62

Please sign in to comment.