File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
packages/angular/cli/upgrade Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -41,17 +41,6 @@ export class Version {
41
41
let angularPkgJson ;
42
42
let rxjsPkgJson ;
43
43
44
- const isInside = ( base : string , potential : string ) : boolean => {
45
- const absoluteBase = path . resolve ( base ) ;
46
- const absolutePotential = path . resolve ( potential ) ;
47
- const relativePotential = path . relative ( absoluteBase , absolutePotential ) ;
48
- if ( ! relativePotential . startsWith ( '..' ) && ! path . isAbsolute ( relativePotential ) ) {
49
- return true ;
50
- }
51
-
52
- return false ;
53
- } ;
54
-
55
44
try {
56
45
const resolveOptions = {
57
46
basedir : projectRoot ,
@@ -61,11 +50,6 @@ export class Version {
61
50
const angularPackagePath = resolve ( '@angular/core/package.json' , resolveOptions ) ;
62
51
const rxjsPackagePath = resolve ( 'rxjs/package.json' , resolveOptions ) ;
63
52
64
- if ( ! isInside ( projectRoot , angularPackagePath )
65
- || ! isInside ( projectRoot , rxjsPackagePath ) ) {
66
- throw new Error ( ) ;
67
- }
68
-
69
53
angularPkgJson = require ( angularPackagePath ) ;
70
54
rxjsPkgJson = require ( rxjsPackagePath ) ;
71
55
} catch {
You can’t perform that action at this time.
0 commit comments