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
Looking at src/loaders/config-loader.ts, it appears as though the function call is looking for name and then directory.
/**
* Loads the config for the app via CosmicConfig by searching in a few places.
*
* @param name The base name of the config to load.
* @param src The directory to look in.
*/
export function loadConfig(name: string, src: string)
I could update either the documentation or the code and submit a PR, but would you prefer the documentation remains the same or the code?
The text was updated successfully, but these errors were encountered:
Hey @blkmutt let's update the documentation -- thank you so much for catching this! I'd probably prefer how it's documented but we've already had it out in the wild with the other order for a while, so we'd better keep it to reduce annoyance/bugs on upgrading.
In the documentation (https://github.com/infinitered/gluegun/blob/master/docs/toolbox-config.md), parameters appear to be reversed for loadConfig. The samples appear to be as follows:
const myConfig = loadConfig(process.cwd(), brand)
Looking at src/loaders/config-loader.ts, it appears as though the function call is looking for name and then directory.
I could update either the documentation or the code and submit a PR, but would you prefer the documentation remains the same or the code?
The text was updated successfully, but these errors were encountered: