diff --git a/src/typo3project.ts b/src/typo3project.ts index 8a2396a..32fadbd 100644 --- a/src/typo3project.ts +++ b/src/typo3project.ts @@ -34,7 +34,7 @@ export default function typo3project( config.root ?? process.cwd(), ); } catch (err: any) { - logger.error(colors.red(err.mesage), { timestamp: true }); + logger.error(colors.red(err.message), { timestamp: true }); return; } @@ -112,6 +112,10 @@ export default function typo3project( ); }, configResolved(config) { + if (!pluginConfig) { + return; + } + if (config.build.manifest === false) { logger.warn( colors.red( @@ -121,7 +125,7 @@ export default function typo3project( ); } - if (pluginConfig && pluginConfig.debug) { + if (pluginConfig.debug) { outputDebugInformation( relevantExtensions, entrypoints, diff --git a/src/utils.ts b/src/utils.ts index 1e1eb18..956e6f5 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -26,7 +26,7 @@ export function initializePluginConfig( if (!composerContext) { const message = target === "project" - ? 'No composer project could be found in parent directories. If you only want to bundle assets of a single extension, make sure to set "target" to "extension".' + ? 'No composer project could be found in parent directories. Make sure to set "type": "project" in your root composer.json.' : "No extension composer file could be found in parent directories. Make sure that your extension has a valid composer file."; throw new Error(message); }