File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
bin/testObservability/crashReporter Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -78,8 +78,8 @@ getPackageVersion = (package_, bsConfig = null) => {
78
78
const packageJSONPath = path . join ( process . cwd ( ) , 'package.json' ) ;
79
79
if ( utils . isUndefined ( packageVersion ) && fs . existsSync ( packageJSONPath ) ) {
80
80
const packageJSONContents = require ( packageJSONPath ) ;
81
- if ( packageJSONContents . devDependencies && ! utils . isUndefined ( packageJSONContents . devDependencies [ "cypress" ] ) ) packages [ package_ ] = packageJSONContents . devDependencies [ "cypress" ] ;
82
- if ( packageJSONContents . dependencies && ! utils . isUndefined ( packageJSONContents . dependencies [ "cypress" ] ) ) packages [ package_ ] = packageJSONContents . dependencies [ "cypress" ] ;
81
+ if ( packageJSONContents . devDependencies && ! utils . isUndefined ( packageJSONContents . devDependencies [ package_ ] ) ) packages [ package_ ] = packageJSONContents . devDependencies [ package_ ] ;
82
+ if ( packageJSONContents . dependencies && ! utils . isUndefined ( packageJSONContents . dependencies [ package_ ] ) ) packages [ package_ ] = packageJSONContents . dependencies [ package_ ] ;
83
83
logger . info ( `Getting ${ package_ } package version from package.json = ${ packages [ package_ ] } ` ) ;
84
84
packageVersion = packages [ package_ ] ;
85
85
}
You can’t perform that action at this time.
0 commit comments