You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently it seems rc caches the file content by name rather than using the full path of the file.
That create a situation in which a given filename won't be loaded if the same filename was loaded from another directory before.
Here is the steps to reproduce:
// File `/directory_1/myapprc`
property = 1
// File `/directory_2/myapprc`
property = 2
process.chdir('/directory_1');varconf1=require('rc')('myapprc');console.log(conf1.property);// 1process.chdir('/directory_2');varconf2=require('rc')('myapprc');console.log(conf2.property);// 1 => should be 2
The text was updated successfully, but these errors were encountered:
Currently it seems
rc
caches the file content by name rather than using the full path of the file.That create a situation in which a given filename won't be loaded if the same filename was loaded from another directory before.
Here is the steps to reproduce:
The text was updated successfully, but these errors were encountered: