Skip to content

Instantly share code, notes, and snippets.

@helhum

helhum/composer.json

Last active Apr 4, 2020
Embed
What would you like to do?
TYPO3 Extension composer.json essentials
{
"name": "vendor/ext-key",
"description": "Essential composer.json attributes",
"keywords": ["typo3", "extension", "composer.json"],
"homepage": "http://helhum.io",
"authors": [
{
"name": "Helmut Hummel",
"email": "info@helhum.io"
}
],
"license": "GPL-2.0-or-later",
"type": "typo3-cms-extension",
"require": {
"typo3/cms-core": "^9.5 || ^10.3",
"typo3/cms-frontend": "^9.5 || ^10.3",
"typo3/cms-scheduler": "^9.5 || ^10.3"
},
"replace": {
"typo3-ter/ext-key": "self.version"
},
"autoload": {
"psr-4": {
"Helhum\\ExtKey\\": "Classes/"
}
},
"extra": {
"typo3/cms": {
"extension-key": "ext_key"
}
}
}
@buepro

This comment has been minimized.

Copy link

@buepro buepro commented Apr 3, 2020

I encountered problems on packagist related to the replace-section. The part "ext_key": "self.version", was reported to not to be compatible with upcoming versions from composer. Looking at the composer configuration from sys_note it looks like the part could be left out when adding an extra-section:

	"extra": {
		"typo3/cms": {
			"extension-key": "sys_note"
		}
	},
@helhum

This comment has been minimized.

Copy link
Owner Author

@helhum helhum commented Apr 4, 2020

@buepro updated the composer.json to be in line with current requirements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.