在 TYPO3 8.7 中,在自定义扩展的 composer.json 中需要一个非扩展包

In TYPO3 8.7, require a non-extension package in custom extension's composer.json

我想在自定义本地 TYPO3 扩展中要求 rte_ckeditor 的包。我看到我 使用 installer-paths 但注意到 #typo3-cms-composer Slack 频道提到它不能很好地与 TYPO3 配合使用。

这是我想在扩展程序的 composer.json 文件中执行的操作,但当我 运行 composer install:

时它似乎被忽略了
"require": {
  "w8tcha/ckeditor-wordcount-plugin": "~1.17"
},
"extra": {
  "installer-paths": {
    "./Resources/Public/RTE/Wordcount/": [
      "w8tcha/ckeditor-wordcount-plugin"
    ]
  }
}

installer-paths 选项属于 composer/installers package. However, you cannot use this package since it conflicts with typo3/cms-composer-installers

即使 CKEditor wordcount 插件有一个 Composer 包,您也应该安装 ckeditor-wordcount-plugin via NPM instead. Depending on your build tools you can then copy that package to your desired location, e.g. via Grunt and grunt-npmcopy