generator-razor 14.0.4 → 14.0.6

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 +18 -0
  2. package/package.json +1 -1
package/app/index.js CHANGED
@@ -387,6 +387,11 @@ export default class extends Generator {
387
387
  }
388
388
  }
389
389
 
390
+ await this._setFileGroup(
391
+ this.destinationPath('typo3conf/PackageStates.php'),
392
+ 'developers'
393
+ )
394
+
390
395
  const orange = chalk.hex('#ff8700').bold
391
396
  const petrol = chalk.hex('#006792')
392
397
 
@@ -1005,6 +1010,19 @@ export default class extends Generator {
1005
1010
  return `${packageName}@https://github.com/${owner}/${repository}/archive/refs/tags/${release.tag_name}.tar.gz`
1006
1011
  }
1007
1012
 
1013
+ async _setFileGroup (filePath, group) {
1014
+ if (!await fs.pathExists(filePath)) {
1015
+ throw new Error(
1016
+ `Cannot change group because the file does not exist: ${filePath}`
1017
+ )
1018
+ }
1019
+
1020
+ await this._runCommand('chgrp', [
1021
+ group,
1022
+ filePath
1023
+ ])
1024
+ }
1025
+
1008
1026
  async _runCommand (command, argumentsList) {
1009
1027
  await new Promise((resolve, reject) => {
1010
1028
  const child = spawn(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-razor",
3
- "version": "14.0.4",
3
+ "version": "14.0.6",
4
4
  "description": "Yeoman generator for razor TYPO3 distribution",
5
5
  "license": "MIT",
6
6
  "main": "app/index.js",