Make FS paths configurable

This commit is contained in:
Alex Gleason committed 2025-10-23 14:50:05 -05:00
1 parent f89a481c9c
commit d75bd386aa
43 files changed
+393 -124

No files matched your search

+3 -1
View File
@@ -19,6 +19,8 @@ export interface Project {
export interface ProjectsManagerOptions {
fs: JSRuntimeFS;
git: Git;
/** Projects directory path (default: /projects) */
projectsPath?: string;
}
export class ProjectsManager {
@@ -29,7 +31,7 @@ export class ProjectsManager {
constructor(options: ProjectsManagerOptions) {
this.fs = options.fs;
this.git = options.git;
this.dir = '/projects';
this.dir = options.projectsPath || '/projects';
}
async init() {