Corrected package name in warning message (#2911)

* fixed typo in warning message

* added missing type
This commit is contained in:
Rafid Muhymin Wafi 2022-03-29 04:05:40 +06:00 committed by GitHub
parent f452a40e9e
commit 30d0fcedbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -140,7 +140,7 @@ export async function validateConfig(userConfig: any, root: string): Promise<Ast
console.error('Update your configuration and install new dependencies:');
try {
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');
console.error('');
console.error(colors.dim(' // astro.config.js'));