File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -292,7 +292,7 @@ function constructLifeCycles(lifeCycle: LifeCycle) {
292
292
const lifeCycles = [ ] as LifeCycle [ ] ;
293
293
lifeCycles . push ( new StoreRunInformationLifeCycle ( ) ) ;
294
294
lifeCycles . push ( lifeCycle ) ;
295
- if ( process . env . NX_PERF_LOGGING ) {
295
+ if ( process . env . NX_PERF_LOGGING === 'true' ) {
296
296
lifeCycles . push ( new TaskTimingsLifeCycle ( ) ) ;
297
297
}
298
298
if ( process . env . NX_PROFILE ) {
Original file line number Diff line number Diff line change 1
1
import { PerformanceObserver } from 'perf_hooks' ;
2
2
3
- if ( process . env . NX_PERF_LOGGING ) {
3
+ if ( process . env . NX_PERF_LOGGING === 'true' ) {
4
4
const obs = new PerformanceObserver ( ( list ) => {
5
5
for ( const entry of list . getEntries ( ) ) {
6
6
console . log ( `Time for '${ entry . name } '` , entry . duration ) ;
Original file line number Diff line number Diff line change 1
1
import { PerformanceObserver } from 'perf_hooks' ;
2
2
3
- if ( process . env . NX_PERF_LOGGING ) {
3
+ if ( process . env . NX_PERF_LOGGING === 'true' ) {
4
4
const obs = new PerformanceObserver ( ( list ) => {
5
5
const entry = list . getEntries ( ) [ 0 ] ;
6
6
console . log ( `Time for '${ entry . name } '` , entry . duration ) ;
You can’t perform that action at this time.
0 commit comments