Corrected package name in warning message (#2911)
* fixed typo in warning message * added missing type
This commit is contained in:
parent
f452a40e9e
commit
30d0fcedbb
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ export async function validateConfig(userConfig: any, root: string): Promise<Ast
|
||||||
console.error('Update your configuration and install new dependencies:');
|
console.error('Update your configuration and install new dependencies:');
|
||||||
try {
|
try {
|
||||||
const rendererKeywords = userConfig.renderers.map((r: string) => r.replace('@astrojs/renderer-', ''));
|
const rendererKeywords = userConfig.renderers.map((r: string) => r.replace('@astrojs/renderer-', ''));
|
||||||
const rendererImports = rendererKeywords.map((r: string) => ` import ${r} from '@astrojs/${r}';`).join('\n');
|
const rendererImports = rendererKeywords.map((r: string) => ` import ${r} from '@astrojs/${r === "solid" ? "solid-js" : r}';`).join("\n");
|
||||||
const rendererIntegrations = rendererKeywords.map((r: string) => ` ${r}(),`).join('\n');
|
const rendererIntegrations = rendererKeywords.map((r: string) => ` ${r}(),`).join('\n');
|
||||||
console.error('');
|
console.error('');
|
||||||
console.error(colors.dim(' // astro.config.js'));
|
console.error(colors.dim(' // astro.config.js'));
|
||||||
|
|
Loading…
Reference in a new issue