File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export default <Module>function settingsModule() {
2121 // Get Docus config path
2222 let settingsPath = resolve ( options . srcDir , 'docus.config' )
2323 if ( existsSync ( settingsPath + '.js' ) ) settingsPath += '.js'
24- if ( existsSync ( settingsPath + '.ts' ) ) settingsPath += '.ts'
24+ else if ( existsSync ( settingsPath + '.ts' ) ) settingsPath += '.ts'
2525
2626 // Get theme settings path
2727 if ( ! options . themeDir ) {
@@ -31,7 +31,7 @@ export default <Module>function settingsModule() {
3131 }
3232 let themeDefaultsPath = resolve ( options . themeDir , 'settings' )
3333 if ( existsSync ( themeDefaultsPath + '.js' ) ) themeDefaultsPath += '.js'
34- if ( existsSync ( themeDefaultsPath + '.ts' ) ) themeDefaultsPath += '.ts'
34+ else if ( existsSync ( themeDefaultsPath + '.ts' ) ) themeDefaultsPath += '.ts'
3535
3636 // Delete Node cache for settings files
3737 clearModule ( themeDefaultsPath )
You can’t perform that action at this time.
0 commit comments