We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fc0e0b commit c842c08Copy full SHA for c842c08
src/utils/constants.ts
@@ -76,7 +76,8 @@ export const PROJECT_CONFIG_DIR = '.opencode';
76
* Get configuration directory for a given scope
77
*/
78
export function getConfigDir(scope: ConfigScope): string {
79
- return scope === 'global' ? GLOBAL_CONFIG_DIR : PROJECT_CONFIG_DIR;
+ const dir = scope === 'global' ? GLOBAL_CONFIG_DIR : PROJECT_CONFIG_DIR;
80
+ return dir.replace(/\\/g, '/');
81
}
82
83
/**
@@ -87,7 +88,8 @@ export function getConfigPath(
87
88
type: ConfigType,
89
namespace: NamespaceType
90
): string {
- return path.join(getConfigDir(scope), type, namespace);
91
+ const configPath = path.join(getConfigDir(scope), type, namespace);
92
+ return configPath.replace(/\\/g, '/');
93
94
95
0 commit comments