generator-razor 14.0.31 → 14.0.33

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