Skip to content

Commit

Permalink
to: fix the path issue (#82)
Browse files Browse the repository at this point in the history
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Chores**
- Updated workspace root path configuration to use current working
directory for more reliable path resolution

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
Sma1lboy authored Dec 30, 2024
1 parent d071f0c commit b0dd484
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit b0dd484

Please sign in to comment.