File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -73,26 +73,21 @@ function archive_project(lt_config) {
7373 { prefix : "project/" }
7474 ) ;
7575 if (
76- lt_config [ " run_settings" ] [ " dep_tokens" ] &&
77- lt_config [ " run_settings" ] [ " dep_tokens" ] . length > 0
76+ lt_config . run_settings . dep_tokens &&
77+ lt_config . run_settings . dep_tokens . length > 0
7878 ) {
7979 if ( fs . existsSync ( ".npmrc" ) ) {
8080 let raw_data = fs . readFileSync ( ".npmrc" , "utf8" ) ;
8181 let replace_map = { } ;
82- for (
83- let i = 0 ;
84- i < lt_config [ "run_settings" ] [ "dep_tokens" ] . length ;
85- i ++
86- ) {
87- if ( process . env [ lt_config [ "run_settings" ] [ "dep_tokens" ] [ i ] ] ) {
82+ for ( let i = 0 ; i < lt_config . run_settings . dep_tokens . length ; i ++ ) {
83+ if ( process . env [ lt_config . run_settings . dep_tokens [ i ] ] ) {
8884 //Used for creating regular expression by escaping the $ and {}
8985 replace_map [
90- "\\$\\{" + lt_config [ " run_settings" ] [ " dep_tokens" ] [ i ] + "\\}"
91- ] = process . env [ lt_config [ " run_settings" ] [ " dep_tokens" ] [ i ] ] ;
86+ "\\$\\{" + lt_config . run_settings . dep_tokens [ i ] + "\\}"
87+ ] = process . env [ lt_config . run_settings . dep_tokens [ i ] ] ;
9288 //User for String replacement
93- replace_map [
94- "${" + lt_config [ "run_settings" ] [ "dep_tokens" ] [ i ] + "}"
95- ] = process . env [ lt_config [ "run_settings" ] [ "dep_tokens" ] [ i ] ] ;
89+ replace_map [ "${" + lt_config . run_settings . dep_tokens [ i ] + "}" ] =
90+ process . env [ lt_config . run_settings . dep_tokens [ i ] ] ;
9691 } else {
9792 reject ( "Dep Tokens are not in environment" ) ;
9893 return ;
You can’t perform that action at this time.
0 commit comments