generator-razor 14.0.31 → 14.0.32

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 -10
  2. package/package.json +1 -1
package/app/index.js CHANGED
@@ -432,33 +432,35 @@ export default class extends Generator {
432
432
  'typo3/sysext/core/bin/typo3'
433
433
  )
434
434
 
435
+ const cwd = this.destinationRoot()
436
+
435
437
  this.log('→ Activating razor bootstrap...')
436
438
 
437
- await this.spawnCommand(
439
+ this.spawnCommandSync(
438
440
  typo3,
439
441
  ['extension:activate', 'razorbootstrap'],
440
442
  {
441
- cwd: this.destinationRoot()
443
+ cwd
442
444
  }
443
445
  )
444
446
 
445
447
  this.log('→ Updating TER extension list...')
446
448
 
447
- await this.spawnCommand(
449
+ this.spawnCommandSync(
448
450
  typo3,
449
451
  ['razorbootstrap:ter:update'],
450
452
  {
451
- cwd: this.destinationRoot()
453
+ cwd
452
454
  }
453
455
  )
454
456
 
455
457
  this.log('→ Removing razor bootstrap...')
456
458
 
457
- await this.spawnCommand(
459
+ this.spawnCommandSync(
458
460
  typo3,
459
461
  ['extension:deactivate', 'razorbootstrap'],
460
462
  {
461
- cwd: this.destinationRoot()
463
+ cwd
462
464
  }
463
465
  )
464
466
 
@@ -468,21 +470,25 @@ export default class extends Generator {
468
470
 
469
471
  this.log('→ Flushing TYPO3 caches...')
470
472
 
471
- await this.spawnCommand(
473
+ await fs.remove(
474
+ this.destinationPath('typo3temp/var/cache')
475
+ )
476
+
477
+ this.spawnCommandSync(
472
478
  typo3,
473
479
  ['cache:flush'],
474
480
  {
475
- cwd: this.destinationRoot()
481
+ cwd
476
482
  }
477
483
  )
478
484
 
479
485
  this.log('→ Activating razor...')
480
486
 
481
- await this.spawnCommand(
487
+ this.spawnCommandSync(
482
488
  typo3,
483
489
  ['extension:activate', 'razor'],
484
490
  {
485
- cwd: this.destinationRoot()
491
+ cwd
486
492
  }
487
493
  )
488
494
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-razor",
3
- "version": "14.0.31",
3
+ "version": "14.0.32",
4
4
  "description": "Yeoman generator for razor TYPO3 distribution",
5
5
  "license": "MIT",
6
6
  "main": "app/index.js",