gatsby-core-utils
Version:
A collection of gatsby utils used in different gatsby packages
15 lines (14 loc) • 318 B
JavaScript
import Configstore from "configstore";
let config;
/**
* Gets the configstore instance related to gatsby
* @return the ConfigStore instance for gatsby
*/
export const getConfigStore = () => {
if (!config) {
config = new Configstore(`gatsby`, {}, {
globalConfigPath: true
});
}
return config;
};