Files
twenty/packages/twenty-sdk/src/cli/utils/format-path.ts
T
martmullandGitHub 7f1e69740a 1895 extensibility v1 application tokens (#16365)
First PR to implement application tokens
- add new application role in twenty-server
- move duplicated constants and types to twenty-shared
- will  add role configuration utils into twenty-sdk in another PR
2025-12-08 10:42:46 +01:00

9 lines
284 B
TypeScript

import { join } from 'path';
import { CURRENT_EXECUTION_DIRECTORY } from '@/cli/constants/current-execution-directory';
export const formatPath = (appPath?: string) => {
return appPath && !appPath?.startsWith('/')
? join(CURRENT_EXECUTION_DIRECTORY, appPath)
: appPath;
};