Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backend/src/config/common-path.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import * as path from 'path';
import { existsSync, mkdirSync, promises } from 'fs-extra';

import { cwd } from 'process';
// Constants for base directories
const APP_NAME = 'codefox';
// TODO: hack way to get the root directory of the workspace
const WORKSPACE_ROOT = path.resolve(__dirname, '../../../');
const WORKSPACE_ROOT = path.resolve(cwd(), '../');
const ROOT_DIR = path.join(WORKSPACE_ROOT, `.${APP_NAME}`);

export const TEMPLATE_PATH = path.join(WORKSPACE_ROOT, 'backend/template');
Expand Down
Loading