@@ -40,7 +40,7 @@ export function getMergedConfig(dir, home, additional) {
4040 ...Object . getOwnPropertyDescriptors ( additional ) ,
4141 } )
4242 : mergedConfig ;
43- } ;
43+ }
4444export function clearCachedConfig ( ) {
4545 mergedConfig = null ;
4646}
@@ -117,7 +117,7 @@ export function getConfig(configType, dir, raw = false) {
117117 } catch ( cause ) {
118118 throw new Error ( 'Unable to parse config file ' + configPath , { cause } ) ;
119119 }
120- } ;
120+ }
121121
122122function getConfigPath ( configType , dir ) {
123123 switch ( configType ) {
@@ -135,7 +135,7 @@ function getConfigPath(configType, dir) {
135135 default :
136136 throw Error ( 'Invalid configType' ) ;
137137 }
138- } ;
138+ }
139139
140140function writeConfig ( configType , obj , dir ) {
141141 const configPath = getConfigPath ( configType , dir ) ;
@@ -158,20 +158,20 @@ function writeConfig(configType, obj, dir) {
158158 }
159159 writeJson ( configPath , obj ) ;
160160 return configPath ;
161- } ;
161+ }
162162
163163export function updateConfig ( configType , obj , dir ) {
164164 const config = getConfig ( configType , dir , true ) ;
165165 writeConfig ( configType , Object . assign ( config , obj ) , dir ) ;
166- } ;
166+ }
167167
168168export function getHomeDir ( home ) {
169169 if ( process . env . XDG_CONFIG_HOME ) {
170170 return process . env . XDG_CONFIG_HOME ;
171171 }
172172 return home || os . homedir ( ) ;
173- } ;
173+ }
174174
175175export function getNcuDir ( dir ) {
176176 return path . join ( dir || process . cwd ( ) , '.ncu' ) ;
177- } ;
177+ }
0 commit comments