File tree 2 files changed +0
-25
lines changed
packages/angular_devkit/build_angular/src/utils
2 files changed +0
-25
lines changed Original file line number Diff line number Diff line change 6
6
* found in the LICENSE file at https://angular.io/license
7
7
*/
8
8
9
- import { colors } from './color' ;
10
-
11
9
function isDisabled ( variable : string ) : boolean {
12
10
return variable === '0' || variable . toLowerCase ( ) === 'false' ;
13
11
}
@@ -77,21 +75,3 @@ export const allowMinify = debugOptimize.minify;
77
75
*/
78
76
const maxWorkersVariable = process . env [ 'NG_BUILD_MAX_WORKERS' ] ;
79
77
export const maxWorkers = isPresent ( maxWorkersVariable ) ? + maxWorkersVariable : 4 ;
80
-
81
- // Build cache
82
- const cacheVariable = process . env [ 'NG_BUILD_CACHE' ] ;
83
- export const cachingDisabled = ( ( ) => {
84
- if ( ! isPresent ( cacheVariable ) ) {
85
- return null ;
86
- }
87
-
88
- // eslint-disable-next-line no-console
89
- console . warn (
90
- colors . yellow (
91
- `Warning: 'NG_BUILD_CACHE' environment variable support will be removed in version 14.\n` +
92
- `Configure 'cli.cache' in the workspace configuration instead.` ,
93
- ) ,
94
- ) ;
95
-
96
- return isDisabled ( cacheVariable ) ;
97
- } ) ( ) ;
Original file line number Diff line number Diff line change 8
8
9
9
import { json } from '@angular-devkit/core' ;
10
10
import { join , resolve } from 'path' ;
11
- import { cachingDisabled } from './environment-options' ;
12
11
import { VERSION } from './package-version' ;
13
12
14
13
export interface NormalizedCachedOptions {
@@ -39,10 +38,6 @@ export function normalizeCacheOptions(
39
38
const isCI = process . env [ 'CI' ] === '1' || process . env [ 'CI' ] ?. toLowerCase ( ) === 'true' ;
40
39
41
40
let cacheEnabled = enabled ;
42
- if ( cachingDisabled !== null ) {
43
- cacheEnabled = ! cachingDisabled ;
44
- }
45
-
46
41
if ( cacheEnabled ) {
47
42
switch ( environment ) {
48
43
case 'ci' :
You can’t perform that action at this time.
0 commit comments