feat(composer): Detect TYPO3 extensions and Symfony bundles as libraries (#14143)

This commit is contained in:
LeoniePhiline 2022-02-10 20:03:36 +01:00 committed by GitHub
parent 529a3a3f11
commit 917f30e783
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,7 +30,13 @@ export function getRangeStrategy(config: RangeConfig): RangeStrategy {
}
const isApp =
composerJsonType &&
!['library', 'metapackage', 'composer-plugin'].includes(composerJsonType);
![
'library',
'metapackage',
'composer-plugin',
'symfony-bundle',
'typo3-cms-extension',
].includes(composerJsonType);
if (isApp && depType === 'require') {
// Pin dependencies if it's an app/project
logger.trace({ dependency: depName }, 'Pinning app require');