generator-razor 14.0.5 → 14.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/app/index.js +16 -4
  2. package/package.json +1 -1
package/app/index.js CHANGED
@@ -387,10 +387,7 @@ export default class extends Generator {
387
387
  }
388
388
  }
389
389
 
390
- await this._setFileGroup(
391
- this.destinationPath('typo3conf/PackageStates.php'),
392
- 'developers'
393
- )
390
+ await this._fixPackageStatesPermissions()
394
391
 
395
392
  const orange = chalk.hex('#ff8700').bold
396
393
  const petrol = chalk.hex('#006792')
@@ -1010,6 +1007,21 @@ export default class extends Generator {
1010
1007
  return `${packageName}@https://github.com/${owner}/${repository}/archive/refs/tags/${release.tag_name}.tar.gz`
1011
1008
  }
1012
1009
 
1010
+ async _fixPackageStatesPermissions () {
1011
+ const file = this.destinationPath(
1012
+ 'typo3conf/PackageStates.php'
1013
+ )
1014
+
1015
+ if (!await fs.pathExists(file)) {
1016
+ return
1017
+ }
1018
+
1019
+ await this._runCommand('chgrp', [
1020
+ 'developers',
1021
+ file
1022
+ ])
1023
+ }
1024
+
1013
1025
  async _runCommand (command, argumentsList) {
1014
1026
  await new Promise((resolve, reject) => {
1015
1027
  const child = spawn(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-razor",
3
- "version": "14.0.5",
3
+ "version": "14.0.7",
4
4
  "description": "Yeoman generator for razor TYPO3 distribution",
5
5
  "license": "MIT",
6
6
  "main": "app/index.js",